zoukankan      html  css  js  c++  java
  • 速卖通api--发起授权

       <?

        $reqURL_onLine = "https://gw.api.alibaba.com/openapi/http/1/system.oauth2/getToken/4947390";
        $grant_type         = 'authorization_code';
        $need_refresh_token    = true;
        $client_id            = 'xxxxx';//速卖通的账号
        $client_secret        = "xxxxx";//速卖通的密钥
        $redirect_uri        = 'http://域名/';
        $code                = 'de70a2ac-8a84-4576-89e7-19bf0ef45619';
        
        echo "<html>
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title></title>
        </head>
        <body onLoad="document.form.submit();">
        <form name='form' action='$reqURL_onLine' method='post'>
        <input type='hidden' name='grant_type'                    value='$grant_type'>
        <input type='hidden' name='need_refresh_token'                value='$need_refresh_token'>
        <input type='hidden' name='client_id'                value='$client_id'>
        <input type='hidden' name='client_secret'                    value='$client_secret'>
        <input type='hidden' name='redirect_uri'                    value='$redirect_uri'>
        <input type='hidden' name='code'                    value='$code'>
        </form>
        </body>
        </html>";

    ?>

  • 相关阅读:
    杭电2081
    杭电2083
    杭电2084
    3/5/2014 cfb 小心
    116
    uva10003
    10815
    127
    674
    uva 13598
  • 原文地址:https://www.cnblogs.com/wendong/p/3860515.html
Copyright © 2011-2022 走看看