<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # GET Request 以下演示了一個簡單的GET請求: 1. `Request.Format`設置`RequestFormat`,它設置`Content-Type`頭并自動轉換請求體,和`ResponseFormat`,它設置`Accept`頭并自動轉換響應體 2. `Request.Method`使用`WebMethod`枚舉來設置請求方法(`GET`,`POST`,`PUT`,`PATCH`和`HEAD`可用) 3. `Client.GetJson`是執行標準`GET` +`json`請求的快捷方式 ~~~ '// (使用概述中的客戶端) Public Function GetProject(Id As Long) As Dictionary Dim Request As New WebRequest Request.Resource = "projects/" & Id '// 設置請求和響應格式 '// - 設置Content-Type和Accept標頭 '// - 轉換請求和響應主體 Request.Format = WebFormat.Json '// 方法: HttpGet = GET '// POST, PUT, DELETE, PATCH, HEAD 也支持 Request.Method = WebMethod.HttpGet Dim Response As WebResponse Set Response = Client.Execute(Request) '// -> GET https://www.example.com/api/projects/1 '// '// <- HTTP/1.1 200 OK '// ... '// {"data":{"id":1,"name":"Project 1"}} If Response.StatusCode = WebStatus.Ok Then '// 基于Request.Format自動解析json響應 Set GetProject = Response.Data("data") End If End Function Public Function GetProject2(Id As Long) As Dictionary '// 對于GET + json,可以使用GetJson '// (相當于上面的GetProject) Dim Response As WebResponse Set Response = Client.GetJson("projects/" & Id) If Response.StatusCode = WebStatus.Ok Then Set GetProject2 = Response.Data("data") End If End Function ~~~
                  <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>

                              哎呀哎呀视频在线观看