You can call this operation to download the SDK.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Action | String | Yes | DownloadFabricOrganizationSDK | The operation that you want to perform. Set the value to DownloadFabricOrganizationSDK. |
OrganizationId | String | Yes | peers-aaaaaa2-1eqnj5o5w**** | The ID of the organization. |
Username | String | Yes | username | The name of the user. |
Location | String | No | cn-hangzhou | The location. |
Response parameters
Parameter | Type | Example | Description |
ErrorCode | Integer | 200 | The error code. |
RequestId | String | 1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3 | The ID of the API request. |
Result | The result list of the operation. | ||
Content | String | base64string | Base64 encoded files can only be decoded with base64 algorithms. |
Path | String | dir/file | The path of the decompressed file. |
Success | Boolean | true | Indicates whether the call is successful. A value of true indicates that the call is successful. A value of false indicates that the call has failed. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DownloadFabricOrganizationSDK
&OrganizationId=peers-aaaaaa2-1eqnj5o5w****
&Username=username
&Location=cn-hangzhou
&<Common request parameters>Successful response examples
XML format
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 format
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"
} ]
}Error codes
For more information about error codes, see Error codes.