Official GO SDK for FileDAG
The FileDAG GO SDK provides the quickest / easiest path for interacting with the FileDAG API.
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"
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")
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()
Distributed under MIT License, please see license file within the code for more details.