Versions in this module Expand all Collapse all v0 v0.0.3 Jan 14, 2021 v0.0.2 Jan 14, 2021 Changes in this version + const CHECK_TAG_USER_EXISTS_URL + const DELETE_ALIAS_URL + const DELETE_TAG_URL + const DEVICE_URL + const PUSH_URL + const PUSH_VALIDATE_URL + const QUERY_ALIAS_URL + const QUERY_TAGS_URL + const RECEIVED_REPORT_URL + const UPDATE_TAG_USERS_URL + var ErrContentMissing = errors.New("<PushObject>: notification or message is required") + var ErrInvalidPlatform = errors.New("<Platform>: invalid platform") + var ErrIosNotificationTooLarge = errors.New("<IosNotification>: iOS notification too large") + var ErrMessageContentMissing = errors.New("<Message>: msg_content is required.") + func BasicAuth(username, password string) string + func EqualStringSlice(a []string, b []string) bool + func GetIntHeader(resp *http.Response, key string) (int, error) + func MinInt(a, b int) int + func RespToJson(resp *http.Response, dest interface{}) error + func UniqString(a []string) []string + type ErrorResult struct + Code int + Message string + func (pe *ErrorResult) String() string + type RateLimitInfo struct + RateLimitQuota int + RateLimitRemaining int + RateLimitReset int + func NewRateLimitInfo(resp *http.Response) *RateLimitInfo + func (info *RateLimitInfo) String() string + type ResponseBase struct + Error *ErrorResult + RateLimitInfo *RateLimitInfo + StatusCode int + func NewResponseBase(resp *http.Response) ResponseBase + func ResponseOrError(resp *http.Response, err error) (*ResponseBase, error) + func (rb *ResponseBase) Ok() bool + func (rb *ResponseBase) String() string