Ai
1 Star 0 Fork 0

农夫/jpushgo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
consts.go 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
农夫 提交于 2021-01-14 17:37 +08:00 . 初始化
package common
import "errors"
const (
rateLimitQuotaHeader = "X-Rate-Limit-Limit"
rateLimitRemainingHeader = "X-Rate-Limit-Remaining"
rateLimitResetHeader = "X-Rate-Limit-Reset"
push_host = "https://api.jpush.cn"
device_host = "https://device.jpush.cn"
report_host = "https://report.jpush.cn"
PUSH_URL = push_host + "/v3/push"
PUSH_VALIDATE_URL = push_host + "/v3/push/validate"
// GET /v3/devices/{registration_id}
DEVICE_URL = device_host + "/v3/devices/%s"
QUERY_TAGS_URL = device_host + "/v3/tags/"
// GET /v3/tags/{tag_value}/registration_ids/{registration_id}
CHECK_TAG_USER_EXISTS_URL = device_host + "/v3/tags/%s/registration_ids/%s"
// POST /v3/tags/{tag_value}
UPDATE_TAG_USERS_URL = device_host + "/v3/tags/%s"
// DELETE /v3/tags/{tag_value}
DELETE_TAG_URL = device_host + "/v3/tags/%s"
// GET /v3/aliases/{alias_value}
QUERY_ALIAS_URL = device_host + "/v3/aliases/%s"
// DELETE /v3/aliases/{alias_value}
DELETE_ALIAS_URL = device_host + "/v3/aliases/%s"
// GET /v3/received
RECEIVED_REPORT_URL = report_host + "/v3/received"
)
var (
ErrInvalidPlatform = errors.New("<Platform>: invalid platform")
ErrMessageContentMissing = errors.New("<Message>: msg_content is required.")
ErrContentMissing = errors.New("<PushObject>: notification or message is required")
ErrIosNotificationTooLarge = errors.New("<IosNotification>: iOS notification too large")
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/alonGroup/jpushgo.git
git@gitee.com:alonGroup/jpushgo.git
alonGroup
jpushgo
jpushgo
v0.0.3

搜索帮助