Navigation Menu

Skip to content

er-azh/go-animeschedule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-animeschedule

⚠️ BOTH THE API AND THIS WRAPPER ARE EXPERIMENTAL. DO NOT USE THEM IN PRODUCTION.

How to install:

go get github.com/er-azh/go-animeschedule

Usage example:

package main

import (
	"fmt"
	"github.com/er-azh/go-animeschedule"
)

func main() {
    timetable, err := animeschedule.GetCurrentTimetable(nil, nil)
    if err != nil {
        panic(err)
    }
    
    fmt.Println(timetable)
}

Methods:

There are more endpoints but I don't know them. If you know one that isn't listed here open an issue or submit a PR.
// GetCurrentTimetable gets the current timetable or the timetable in a specific week
// when timetableTime is specified it tries to get that week's timetable.
// timezone can be set to return times in a different time zone.
func GetCurrentTimetable(timetableTime *TimetableTime,timezone *time.Location) (*Timetable, error)

// GetShow gets a show by its slug
func GetShow(slug string) (*ShowDetail, error) 

About

a golang wrapper for animeschedule's API.

Topics

Resources

License

Stars

Watchers

Forks

Languages