Skip to content

shitpostingio/alldebrid

Repository files navigation

Go DeepSource Go Report Card

Alldebrid Go Library

This is a Go wrapper for Alldebrid v4 APIs

Installation

go get -u github.com/shitpostingio/alldebrid

Usage

To get started import the library in your program and initialize a client

import	"github.com/shitpostingio/alldebrid"

func main() {
	client, _ := alldebrid.New("friji3r124rnwer", "MyAppName")

	m := []string{"magnet:?xt=urn:btih:f95c371d5609d15f6615139be84edbb5b94a79bc"}

	resp, err := client.UploadMagnet(m)
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(resp)
}