sr:Sveriges Radio API 的 Go 库

时间:2021-07-14 22:01:18
【文件属性】:
文件名称:sr:Sveriges Radio API 的 Go 库
文件大小:37KB
文件格式:ZIP
更新时间:2021-07-14 22:01:18
Go sr (api v2) Go 库 安装 go get -u github.com/peterhellberg/sr 示例用法 获取当天的排行榜。 package main import ( "fmt" "github.com/peterhellberg/sr" ) func main () { sr := sr . NewClient ( nil ) shows , err := sr . Toplist . GetDay () if err == nil { for i , show := range shows { fmt . Println ( i + 1 , show . Title ) } } } 服务 频道 返回 SR 所有频道的列表 package main import ( "fmt" "github.com/peterhellberg
【文件预览】:
sr-master
----news_test.go(370B)
----channels.go(2KB)
----wcf()
--------time.go(319B)
--------time_test.go(269B)
----client.go(2KB)
----episodes.go(3KB)
----client_test.go(961B)
----_fixtures()
--------episodes_getlatest_3718.json(3KB)
--------toplist.json(12KB)
--------programcategories.json(765B)
--------sport_broadcasts.json(128KB)
--------sport_broadcasts_HV71.json(10KB)
--------news.json(35KB)
--------playlists_rightnow_2576.json(622B)
--------channels.json(30KB)
--------episodes_3718.json(9KB)
--------channels_132.json(686B)
----news.go(754B)
----reflex.sh(88B)
----episodes_test.go(737B)
----programs_test.go(11B)
----.travis.yml(116B)
----sport_test.go(1010B)
----README.md(3KB)
----scheduledepisodes_test.go(11B)
----sport.go(2KB)
----playlists.go(1KB)
----programs.go(1KB)
----.gitignore(266B)
----scheduledepisodes.go(657B)
----toplist_test.go(786B)
----programcategories_test.go(338B)
----programcategories.go(1KB)
----playlists_test.go(311B)
----toplist.go(2KB)
----channels_test.go(462B)

网友评论