<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## 二維碼生成 >[danger]### 免費接口,每日100次免費調用,會員可不限次數調用,購買[API會員](https://market.topthink.com/product/210) ![](https://img.kancloud.cn/2a/ec/2aec98c77556f1d673b6252ff5c380f5_198x200.png =120x) > 按照設定的參數、生成二維碼 每日100次免費調用 ## 接口調用([調用須知](https://docs.topthink.com/think-api/1835086)) ### 請求地址 ``` GET https://api.topthink.com/qrcode/index ``` ### 請求參數 | 名稱 | 必填 | 類型 | 說明 | | --- | --- | --- | --- | | appCode| 是 |string| 用戶授權碼,參考[API調用](https://docs.topthink.com/think-api/1835086) | | text | 否 | string | 二維碼內容 | | el | 否 | string | 糾錯等級,el可用值:h\\q\\m\\l,例如:h | | bgcolor | 否 | string | 背景色代碼,例如:ffffff | | fgcolor | 否 | string | 前景色代碼,例如:000000 | | logo | 否 | string | logo圖片URL地址或base64encode編碼的圖片內容,需要urlencode | | w | 否 | int | 尺寸大小(像素),例如:300 | | m | 否 | int | 邊距大小(像素),例如:10 | | lw | 否 | int | logo寬度(像素),例如:60 | | type | 否 | int | 返回模式,1:二維碼圖片以base64encode編碼返回 2:直接返回二維碼圖像,默認1 | ### 返回`data`參數 | 名稱 | 類型 | 說明 | | --- | --- | --- | | 見JSON返回示例 | \- | ## SDK調用 ``` $client = new Client("YourAppCode"); $result = $client->qrcodeIndex() ->withText('二維碼內容') ->withBgcolor('ffffff') ->withFgcolor('000000') ->withLogo() ->withW() ->withM() ->withType() ->request(); ``` 返回示例: ~~~ { "message": "success", "data": { "base64_image": "base64encode編碼的二維碼圖片內容" }, "code": 0 } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看