go-filedag-sdk

module
v0.0.0-...-cd9cbe6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2021 License: MIT

README

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL