- weixinsnsapi added.

This commit is contained in:
gazebo
2018-09-04 15:52:29 +08:00
parent 5beeab4dfa
commit 13e5b6b44f
3 changed files with 246 additions and 0 deletions

View File

@@ -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 {