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) {
|
||||
//"grant_type", "authorization_code",
|
||||
result, err := a.AccessAPI("sns/oauth2/access_token", utils.Params2Map("code", code), "")
|
||||
result, err := a.AccessAPI("sns/oauth2/access_token", utils.Params2Map("grant_type", "authorization_code", "code", code), "")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user