Jiguang Push Service Golang SDK
Production ready, full golang implementation of jiguang Push API (https://docs.jiguang.cn/jpush/server/push/rest_api_v3_report/)
var client = jpush.NewClient("yourappSecret", "appkey")
func main() {
var payload *Payload = NewPayload("android")
payload.SetRegistrationId(regIds)
result, err := client.Push(context.TODO(), payload)
}
- Push(ctx context.Context, payload *Payload)
- PushMultiTags(ctx context.Context, platform, cid string, tags, andTags, notTags []string, notice map[string]string)
- BatchPush(ctx context.Context, platform string, rigs []map[string]string, notice map[string]string)
- Stats(msgIds string)
- VipStats(ctx context.Context, msgIds string)
- GetCids(ctx context.Context, count int)