Свойство | Тип | Описание |
---|
Метод | Описание | |
---|---|---|
GetAccessToken ( string clientId, string clientSecret, string code, string grantType = "authorization_code" ) : |
获取AccessToken
|
|
GetAuthorizeUrl ( int weixinId, string clientId, string redirectUrl, string state, string responseType = "code" ) : string |
获取验证地址
|
public static GetAccessToken ( string clientId, string clientSecret, string code, string grantType = "authorization_code" ) : |
||
clientId | string | 此App的唯一标识。可以在此APP的【开发接入】页面的【OAuth认证 设置】页面看到 |
clientSecret | string | 对应此App的唯一标识的密码。可以在此APP的【开发接入】页面的【OAuth认证 设置】页面看到 |
code | string | code作为换取access_token的票据,每次用户授权带上的code将不一样,code只能使用一次,5分钟未被使用自动过期。 |
grantType | string | |
Результат |
public static GetAuthorizeUrl ( int weixinId, string clientId, string redirectUrl, string state, string responseType = "code" ) : string | ||
weixinId | int | 正在使用此APP的weixinId |
clientId | string | 此App的唯一标识。可以在此APP的【开发接入】页面的【OAuth认证 设置】页面看到 |
redirectUrl | string | |
state | string | |
responseType | string | |
Результат | string |