gcmlib:Google Cloud Messaging(GCM)Go客户端

时间:2021-05-18 08:42:04
【文件属性】:
文件名称:gcmlib:Google Cloud Messaging(GCM)Go客户端
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-18 08:42:04
Go gcmlib Golang Google Cloud Messaging(GCM)库。 安装 $ go get github.com/gamegos/gcmlib 然后 import "github.com/gamegos/gcmlib" 用法示例 package main import ( "fmt" gcm "github.com/gamegos/gcmlib" ) func main () { client := gcm . NewClient (gcm. Config { APIKey : "your-gcm-api-key" , MaxRetries : 4 , }) message := & gcm. Message { RegistrationIDs : [] string { "registrationID1" , "
【文件预览】:
gcmlib-master
----response.go(608B)
----.travis.yml(42B)
----error.go(2KB)
----LICENSE(1KB)
----message_test.go(917B)
----example_test.go(599B)
----README.md(2KB)
----integration_test.go(4KB)
----message.go(3KB)
----client.go(3KB)
----client_test.go(4KB)

网友评论