You can call this operation to confirm to join the channel.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | JoinFabricChannel | The operation that you want to perform. Set the value to JoinFabricChannel. |
ChannelId | String | Yes | chan-channelx-1l1hmckuu | The ID of the channel. |
Do | String | Yes | Accept | The operation. |
Location | String | No | cn-hangzhou | The location. |
RegionId | String | No | cn-hangzhou | The ID of the region. |
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 of the operation. | ||
AcceptTime | String | 1533025590 | The time when the user accepted the invitation to join a channel. |
ApproveTime | String | 1533025590 | The time when the application was approved. |
ChannelId | String | channelid | The ID of the channel. |
ConfirmTime | String | 1533025590 | The time when the application to join a channel was confirmed. |
DestroyTime | String | 1533025590 | The time when the application to join a channel was declined. |
InviteTime | String | 1533025590 | The time when the invitation was made. |
OrganizationId | String | peers-aaaaaa2-1eqnj5o5w9dt3 | The ID of the organization. |
State | String | Running | The status. |
WithPeer | Boolean | true | Indicated whether peer nodes are contained. |
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=JoinFabricChannel&ChannelId=chan-channelx-1l1hmckuu&Do=accept&<Common request parameters>
Successful response examples
XML
format
<JoinFabricChannelResponse> <Result> <InviteTime>2018-06-21T13:41:48.000+0000</InviteTime> <ChannelId>ch-2n5fgcikopo4al</ChannelId> <WithPeer>true</WithPeer> <ApproveTime>2018-06-21T13:41:48.000+0000</ApproveTime> <ConfirmTime>2018-06-21T13:41:48.000+0000</ConfirmTime> <DestroyTime>2018-06-21T13:41:48.000+0000</DestroyTime> <State>Accepted</State> <OrganizationId>org1</OrganizationId> <AcceptTime>2018-06-21T13:41:48.000+0000</AcceptTime> </Result> <RequestId>7D27692E-C501-4B1D-878C-0B869DD3D9E6</RequestId> <Success>true</Success> <ErrorCode>200</ErrorCode></JoinFabricChannelResponse>
JSON
format
{ “Result”:{ “ChannelId”:”ch-2n5fgcikopo4al”, “InviteTime”:”2018-06-21T13:41:48.000+0000”, “WithPeer”:true, “State”:”Accepted”, “ApproveTime”:”2018-06-21T13:41:48.000+0000”, “ConfirmTime”:”2018-06-21T13:41:48.000+0000”, “OrganizationId”:”org1”, “DestroyTime”:”2018-06-21T13:41:48.000+0000”, “AcceptTime”:”2018-06-21T13:41:48.000+0000” }, “RequestId”:”7D27692E-C501-4B1D-878C-0B869DD3D9E6”, “ErrorCode”:200, “Success”:true}
Error codes
For more information about error codes, see Error codes.
</article>
</main>