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
- Host: GitHub
- URL: https://github.com/shitpostingio/alldebrid
- Owner: shitpostingio
- License: mit
- Created: 2020-05-22T15:19:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-15T17:40:35.000Z (about 6 years ago)
- Last Synced: 2024-06-20T08:08:09.068Z (about 2 years ago)
- Topics: alldebrid, golang, hacktoberfest, library, wrapper
- Language: Go
- Homepage:
- Size: 66.4 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://deepsource.io/gh/shitpostingio/alldebrid/?ref=repository-badge)
[](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)
}
```