Skip to content

filedrive-team/go-filedag-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FileDAG SDK

Official GO SDK for FileDAG

Overview

The FileDAG GO SDK provides the quickest / easiest path for interacting with the FileDAG API.

Installation

Use go get.

go get github.com/filedrive-team/go-filedag-sdk

Then import the sdk package into your own code.

import "github.com/filedrive-team/go-filedag-sdk/client"

Setup

To start, simply require the FileDAG SDK and set up an instance with your FileDAG API Keys. Don't know what your keys are? Check out your API Keys Page.

cli := client.NewWithJwtToken("https://api.filedag.cloud", "YOUR_JWT")

or

cli := client.NewWithKeySecret("https://api.filedag.cloud", "YOUR_API_KEY", "YOUR_API_SECRET")

Usage

Once you've set up your instance, using the FileDAG SDK is easy. Simply call your desired function and handle the results.

resp, err := cli.PinnedDataTotal()

License

Distributed under MIT License, please see license file within the code for more details.

About

sdk for filedag in golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages