Git Product home page Git Product logo

kitsu-go's Introduction

Go Report Card

kitsu-go

Interact with the kitsu.io api using Go

Install

go get github.com/KurozeroPB/kitsu-go

Usage

Simple example usage:

package main

import (
  "fmt"

  "github.com/KurozeroPB/kitsu-go"
)

func main() {
  // Example to search for an anime
  anime, e := kitsu.SearchAnime("fate/apocrypha", 0)
  if e != nil {
    fmt.Println(e)
    return
  }
  fmt.Println(anime.Attributes.PosterImage.Original)
}

Docs

SearchAnime(query, offset)

Parameter Type Description
query string The anime you want to search
offset int Page offset

SearchManga(query, offset)

Parameter Type Description
query string The manga you want to search
offset int Page offset

SearchCharacter(query)

Parameter Type Description
query string The name of the character you want to search for

SearchProducer(query)

Parameter Type Description
query string The name of the producer you want to search for

SearchUser(query)

Parameter Type Description
query string The name of the user you want to search for

SearchDrama(query)

Parameter Type Description
query string The drama you want to search

There are currently no dramas on kitsu so this will return an error until they add dramas to the website.

GetAnime(id)

Parameter Type Description
id int The id of the anime you want to get

GetManga(id)

Parameter Type Description
id int The id of the manga you want to get

GetUser(id)

Parameter Type Description
id int The id of the user you want to get

GetStats(id)

Parameter Type Description
id int The id of the user you want to get the stats from

TODO

  1. Manga search
  2. Character search
  3. Producers search
  4. Users search
  5. Drama search
  6. Get anime by id
  7. Get manga by id
  8. Get user by id
  9. Get user stats by id

kitsu-go's People

Contributors

pepijn98 avatar

Watchers

 avatar  avatar

kitsu-go's Issues

Wrong stats url

user.go ln: 218
func GetStatus url uses a stats id instead of user id https://kitsu.io/api/edge/stats/{ID}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.