Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1.44 KB

README.md

File metadata and controls

46 lines (28 loc) · 1.44 KB

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.