api-163-go

command module
v0.0.0-...-413c3ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2018 License: MIT Imports: 4 Imported by: 0

README

api-163-go

Yitimo's 163 api in golang. Study use only. See the project here.

Notes:

  1. this is just a RESTful api, so you still need to have a client.
  2. This go api is under go-martini, so after cloning thie repo, you should also go get the martini
  3. modules in this api are all named by 魔法少女まどか☆マギカ : )

How to run

go run main.go

or run after build:

go build

By default it will listen at http://localhost:9999

About authorization

Currently it's using a martini submodule.

  • IP address white list

    only support the IPs configured by kyouko

  • Username & password authorization

    currently they're static yitimo and iamyitimo

So if you want to call this api, just clone it, update with your auth config and run in your own server.

Currently APIs

param desc is needed
:words search words yes
:page pagination, start from 1 yes
:limit item number per page yes
path desc
/search search song
/search/album search album
/search/artist search artist
/search/playlist search playlist
PlayList
param desc isneeded
:cat catalogue in chinese yes
:order hot or new yes
:page pagination, start from 1 yes
:limit item number per page yes
path desc
/playlist/catalogue get all catalogues
/playlist/:cat/:order/:page/:limit get playlists by cat&order
/playlist/detail/:id get playlist detail by id
Downlod

Edit soon ...

Song
Info
Lyric
Artist
TopSong
Album

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL