全部產品
Search
文件中心

Blockchain as a Service:DownloadFabricOrganizationSDK

更新時間:Jan 24, 2025

調用DownloadFabricOrganizationSDK下載SDK。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

請求參數

名稱

類型

是否必選

樣本值

描述

Action String DownloadFabricOrganizationSDK

系統規定參數。取值:DownloadFabricOrganizationSDK

OrganizationId String peers-aaaaaa2-1eqnj5o5w****

組織ID

Username String username

使用者名稱

Location String cn-hangzhou

位置

返回資料

名稱

類型

樣本值

描述

RequestId String 1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3

請求ID

Success Boolean true

是否成功

ErrorCode Integer 200

錯誤碼

Result Array of Result
Path String dir/file

檔案解壓後的路徑

Content String base64string

base64轉碼過的檔案內容,需要用base64解碼才能得到檔案原內容

樣本

請求樣本

http(s)://[Endpoint]/?Action=DownloadFabricOrganizationSDK
&OrganizationId=peers-aaaaaa2-1eqnj5o5w****
&Username=username
&Location=cn-hangzhou
&公用請求參數

正常返回樣本

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<DownloadFabricOrganizationSDKResponse>
    <RequestId>1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3</RequestId>
    <Success>true</Success>
    <ErrorCode>200</ErrorCode>
    <Result>
        <Path>dir/file</Path>
        <Content>base64string</Content>
    </Result>
</DownloadFabricOrganizationSDKResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3",
  "Success" : true,
  "ErrorCode" : 200,
  "Result" : [ {
    "Path" : "dir/file",
    "Content" : "base64string"
  } ]
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。