﻿<?xml version="1.0" encoding="utf-8" ?>
<fWxReqs>
  <fWxReq>
    <fItemId>0</fItemId>
    <fName>2、获取第三方平台component_access_token</fName>
    <fUrl>https://api.weixin.qq.com/cgi-bin/component/api_component_token</fUrl>
    <fType>POST</fType>
    <fParams>
      {{
      "component_appid":"{0}",
      "component_appsecret":"{1}",
      "component_verify_ticket":"{2}"
      }}
    </fParams>
  </fWxReq>
  <fWxReq>
    <fItemId>1</fItemId>
    <fName>3、获取预授权码pre_auth_code</fName>
    <fUrl>https://api.weixin.qq.com/cgi-bin/component/api_create_preauthcode?component_access_token={0}</fUrl>
    <fType>POST</fType>
    <fParams>
      {{
      "component_appid":"{0}"
      }}
    </fParams>
  </fWxReq>
  <fWxReq>
    <fItemId>2</fItemId>
    <fName>4、使用授权码换取公众号的接口调用凭据和授权信息</fName>
    <fUrl>https://api.weixin.qq.com/cgi-bin/component/api_query_auth?component_access_token={0}</fUrl>
    <fType>POST</fType>
    <fParams>
      {{
      "component_appid": "{0}",
      "authorization_code": "{1}"
      }}
    </fParams>
  </fWxReq>
  
  <fWxReq>
    <fItemId>3</fItemId>
    <fName>5、获取（刷新）授权公众号的接口调用凭据（令牌）</fName>
    <fUrl>https://api.weixin.qq.com/cgi-bin/component/api_authorizer_token?component_access_token={0}</fUrl>
    <fType>POST</fType>
    <fParams>
      {{
      "component_appid": "{0}",
      "authorizer_appid": "{1}",
      "authorizer_refresh_token": "{2}"
      }}
    </fParams>
  </fWxReq>

  <fWxReq>
    <fItemId>4</fItemId>
    <fName>6、获取授权方的公众号帐号基本信息</fName>
    <fUrl>https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_info?component_access_token={0}</fUrl>
    <fType>POST</fType>
    <fParams>
      {{
      "component_appid": "{0}",
      "authorizer_appid": "{1}"
      }}
    </fParams>
  </fWxReq>


  <fWxReq>
    <fItemId>5</fItemId>
    <fName>7、获取授权方的选项设置信息</fName>
    <fUrl>https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_option?component_access_token={0}</fUrl>
    <fType>POST</fType>
    <fParams>
      {{
      "component_appid": "{0}",
      "authorizer_appid": "{1}",
      "option_name": "{2}"
      }}
    </fParams>
  </fWxReq>


  <fWxReq>
    <fItemId>6</fItemId>
    <fName>8、设置授权方的选项信息</fName>
    <fUrl>https://api.weixin.qq.com/cgi-bin/component/api_set_authorizer_option?component_access_token={0}</fUrl>
    <fType>POST</fType>
    <fParams>
      {{
      "component_appid": "{0}",
      "authorizer_appid": "{1}",
      "option_name": "{2}",
      "option_value": "{3}"
      }}
    </fParams>
  </fWxReq>

  <fWxReq>
    <fItemId>7</fItemId>
    <fName>通过code换取网页授权access_token</fName>
    <fUrl>https://api.weixin.qq.com/sns/oauth2/component/access_token?appid={0}&amp;code={1}&amp;grant_type=authorization_code&amp;component_appid={2}&amp;component_access_token={3}</fUrl>
    <fType>GET</fType>
    <fParams>
    </fParams>
  </fWxReq>


  <fWxReq>
    <fItemId>8</fItemId>
    <fName>刷新access_token（如果需要）</fName>
    <fUrl>https://api.weixin.qq.com/sns/oauth2/component/refresh_token?appid={0}&amp;grant_type=refresh_token&amp;component_appid={1}&amp;component_access_token={2}&amp;refresh_token={3}</fUrl>
    <fType>GET</fType>
    <fParams>
    </fParams>
  </fWxReq>

  <fWxReq>
    <fItemId>9</fItemId>
    <fName>通过网页授权access_token获取用户基本信息</fName>
    <fUrl>https://api.weixin.qq.com/sns/userinfo?access_token={0}&amp;openid={1}&amp;lang=zh_CN</fUrl>
    <fType>GET</fType>
    <fParams>
    </fParams>
  </fWxReq>
  
</fWxReqs>




