Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is used to send push request.
func (Client) SendRequest ¶
func (c Client) SendRequest(r *PushRequest) (string, error)
SendRequest method sends out a PushRequest.
type PushRequest ¶
type PushRequest struct { // push target AppKey string Target string TargetValue string DeviceType int // push configuration Type int Title string Body string Summary string // IOS specific IOSBadge string IOSMusic string IOSExtParameters string ApnsEnv string Remind bool // Android specific AndroidOpenType int AndroidOpenURL string AndroidExtParameters string AndroidMusic string AndroidActivity string // Message control PushTime string StoreOffline bool ExpireTime string BatchNumber string }
PushRequest struct represents a message to be pushed to mobile.
Click to show internal directories.
Click to hide internal directories.