chong

Updated 第三方登录 (markdown)

@@ -4,18 +4,36 @@ @@ -4,18 +4,36 @@
4 4
5 第三方登录成功后需要上传第三方信息给服务器 5 第三方登录成功后需要上传第三方信息给服务器
6 6
7 -在/after_bind接口提交时增加参数payload。payload的格式为json,其中包括从授权服务器获得的所有key-value内容。 7 +###接口地址
  8 +```
  9 +/after_bind
  10 +```
  11 +###请求方式
  12 +```
  13 +POST 请求
  14 +```
  15 +###参数
  16 +```
  17 +open_id 必须
  18 +platform_name 必须
  19 +payload 必须
  20 +access_token 非必须
  21 +expires_in 非必须
  22 +```
  23 +
8 ```json 24 ```json
  25 +payload 例子 payload内容是json需要使用base64进行编码
9 { 26 {
10 "access_token":"access_token", 27 "access_token":"access_token",
11 "refresh_token":"refresh_token", 28 "refresh_token":"refresh_token",
12 "expires_in":"expires_in", 29 "expires_in":"expires_in",
13 "refresh_token_expires":"refresh_token_expires" 30 "refresh_token_expires":"refresh_token_expires"
14 -} 31 + }
15 -```  
16 payload=base64(json) 32 payload=base64(json)
  33 +```
17 34
18 -参数为: 35 +payload 参数为:
  36 +其中包括从授权服务器获得的所有key-value内容
19 37
20 | key | Android微信 | AndroidQQ | 是否必须 | 38 | key | Android微信 | AndroidQQ | 是否必须 |
21 | --- | --- | --- | --- | 39 | --- | --- | --- | --- |