Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 488 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 488 Bytes

alldebrid

Simple AllDebrid API client

Example of use

package main

import (
    "log"

    "github.com/chneau/alldebrid"
)

func main() {
    client := alldebrid.New()
    _ = client
    logs, err := client.Connect("username", "password")
    if err != nil {
        panic(err)
    }
    log.Println(logs)
    link, err := client.GetDownloadLink("https://mega-downloader.example/superweirdlink.mp4")
    if err != nil {
        panic(err)
    }
    log.Println(link)
}