文件名称:go-mastodon:golang的mastodon客户
文件大小:64KB
文件格式:ZIP
更新时间:2024-02-24 07:04:32
go golang mastodon MastodonGo
象牙石 用法 应用 package main import ( "context" "fmt" "log" "github.com/mattn/go-mastodon" ) func main () { app , err := mastodon . RegisterApp ( context . Background (), & mastodon. AppConfig { Server : "https://mstdn.jp" , ClientName : "client-name" , Scopes : "read write follow" , Website : "https://github.com/mattn/go-mastodon" , }) if err != nil { log . Fatal ( err ) } fmt . Printf ( "client-id : %s \n " , app . ClientID ) fmt . Printf ( "client-secret: %s \n " ,
【文件预览】:
go-mastodon-master
----.gitignore(6B)
----go.mod(349B)
----status_test.go(19KB)
----go.test.sh(267B)
----streaming_ws_test.go(7KB)
----notification.go(4KB)
----mastodon_test.go(9KB)
----apps.go(2KB)
----notification_test.go(4KB)
----instance.go(2KB)
----.travis.yml(163B)
----status.go(12KB)
----mastodon.go(8KB)
----report_test.go(2KB)
----LICENSE(1KB)
----compat.go(861B)
----go.sum(5KB)
----streaming.go(4KB)
----testdata()
--------logo.png(2KB)
----.github()
--------FUNDING.yml(717B)
----helper.go(1KB)
----example_test.go(1KB)
----README.md(4KB)
----streaming_test.go(8KB)
----lists.go(3KB)
----helper_test.go(4KB)
----instance_test.go(5KB)
----accounts_test.go(18KB)
----apps_test.go(2KB)
----streaming_ws.go(4KB)
----lists_test.go(7KB)
----accounts.go(10KB)
----report.go(951B)
----cmd()
--------mstdn()
----polls.go(549B)
----unixtime.go(359B)