An open API service indexing awesome lists of open source software.

https://github.com/shitpostingio/alldebrid

A golang wrapper for Alldebrid APIs
https://github.com/shitpostingio/alldebrid

alldebrid golang hacktoberfest library wrapper

Last synced: 5 months ago
JSON representation

A golang wrapper for Alldebrid APIs

Awesome Lists containing this project

README

          

![Go](https://github.com/shitpostingio/alldebrid/workflows/Go/badge.svg)
[![DeepSource](https://static.deepsource.io/deepsource-badge-light-mini.svg)](https://deepsource.io/gh/shitpostingio/alldebrid/?ref=repository-badge)
[![Go Report Card](https://goreportcard.com/badge/github.com/shitpostingio/alldebrid)](https://goreportcard.com/report/github.com/shitpostingio/alldebrid)
# 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

```go
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)
}
```