sns user
This commit is contained in:
@@ -62,8 +62,7 @@ func mapData2SNSToken(result map[string]interface{}) *SNSTokenInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (a *API) SNSRetrieveToken(code string) (tokenInfo *SNSTokenInfo, err error) {
|
func (a *API) SNSRetrieveToken(code string) (tokenInfo *SNSTokenInfo, err error) {
|
||||||
//"grant_type", "authorization_code",
|
result, err := a.AccessAPI("sns/oauth2/access_token", utils.Params2Map("grant_type", "authorization_code", "code", code), "")
|
||||||
result, err := a.AccessAPI("sns/oauth2/access_token", utils.Params2Map("code", code), "")
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user