Documentation ¶
Index ¶
- func MakeTimedToken(data, secret string, expire int64) (string, error)
- func MapToUrlencoded(m map[string]interface{}, secretKey string) string
- type SDK
- func (client *SDK) ApiRequest(method string, jsonObject map[string]interface{}) (resp xljson.JsonObject, err error)
- func (client *SDK) GetNonce() string
- func (client *SDK) GetSign(jsonObject map[string]interface{}) string
- func (client *SDK) ProduceIMToken(userTag string) (string, error)
- func (client *SDK) PushMessage(sendTo string, message map[string]interface{}) (resp xljson.JsonObject, err error)
- func (client *SDK) Request(path string, jsonObject map[string]interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapToUrlencoded ¶
Types ¶
type SDK ¶
func (*SDK) ApiRequest ¶
func (client *SDK) ApiRequest(method string, jsonObject map[string]interface{}) (resp xljson.JsonObject, err error)
ApiRequest API封装请求
func (*SDK) ProduceIMToken ¶
ProduceIMToken 获取用户Token
func (*SDK) PushMessage ¶
Click to show internal directories.
Click to hide internal directories.