SevereCloud / shikimori

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shikimori

PkgGoDev codecov release license

Status - https://github.com/SevereCloud/shikimori/milestone/1

package main

import (
	"context"
	"log"

	"github.com/SevereCloud/shikimori"
)

func main() {
	shiki := shikimori.NewAPI()

	// shiki.UserAgent = "MyUserAgent"
	// shiki.AccessToken = os.Getenv("ACCESS_TOKEN")

	ctx := context.Background()

	resp, err := shiki.UsersAnimeRates(ctx, "SevereCloud", &shikimori.UsersAnimeRateParams{
		Limit:  1,
		Status: shikimori.Watching,
	})
	if err != nil {
		log.Fatal(err)
	}

	log.Println(resp[0].Anime.Name)
}

About

License:MIT License


Languages

Language:Go 100.0%