- weixinsnsapi added.
This commit is contained in:
@@ -54,6 +54,14 @@ func New(appID, secret string, config ...*platformapi.APIConfig) *API {
|
||||
}
|
||||
}
|
||||
|
||||
func (a *API) GetAppID() string {
|
||||
return a.appID
|
||||
}
|
||||
|
||||
func (a *API) GetSecret() string {
|
||||
return a.secret
|
||||
}
|
||||
|
||||
func (a *API) SetToken(newToken string) bool {
|
||||
curToken := a.GetToken()
|
||||
if curToken != newToken {
|
||||
|
||||
Reference in New Issue
Block a user