调用DescribeFabricInvitationCode获取邀请链接。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 |
类型 |
是否必选 |
示例值 |
描述 |
Action | String | 是 | DescribeFabricInvitationCode | 系统规定参数。取值:DescribeFabricInvitationCode。 |
ConsortiumId | String | 是 | consortium-lianmenyumingyi-hc5d1bwl**** | 联盟ID |
返回数据
名称 |
类型 |
示例值 |
描述 |
DynamicMessage | String | The invitation code could not found. | 错误消息 |
RequestId | String | 77E25463-56CB-4F1C-8EB6-8ADDFE39EF0F | 请求ID |
ErrorCode | Integer | 200 | 错误码 |
Success | Boolean | true | 是否成功 |
DynamicCode | String | InvitationCodeNotFound | 错误代码 |
Result | Object | 结果 |
|
SenderId | Long | 26345345 | 发送者ID |
String | abc@126.com | 邮箱 |
|
SenderBid | String | 27534 | 发送者Bid |
ExpireTime | String | 1544411108000 | 过期时间 |
ConsortiumId | String | consortium-lianmenyumingyi-hc5d1bwl**** | 联盟ID |
InvitationId | Integer | 2 | 邀请ID |
SenderName | String | uid-35324 | 发送者 |
Code | String | code | 邀请码 |
Url | String | http://baas.console.aliyun.test/invite?code=92e7ef1934892 | 邀请链接 |
Accepted | Boolean | true | 是否接受 |
SendTime | String | 1544411108000 | 发送时间 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeFabricInvitationCode
&ConsortiumId=consortium-lianmenyumingyi-hc5d1bwl****
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeFabricInvitationCodeResponse>
<DynamicMessage>The invitation code could not found.</DynamicMessage>
<RequestId>77E25463-56CB-4F1C-8EB6-8ADDFE39EF0F</RequestId>
<ErrorCode>200</ErrorCode>
<Success>true</Success>
<DynamicCode>InvitationCodeNotFound</DynamicCode>
<Result>
<SenderId>26345345</SenderId>
<Email>abc@126.com</Email>
<SenderBid>27534</SenderBid>
<ExpireTime>1544411108000</ExpireTime>
<ConsortiumId>consortium-lianmenyumingyi-hc5d1bwl****</ConsortiumId>
<InvitationId>2</InvitationId>
<SenderName>uid-35324</SenderName>
<Code>code</Code>
<Url>http://baas.console.aliyun.test/invite?code=92e7ef1934892</Url>
<Accepted>true</Accepted>
<SendTime>1544411108000</SendTime>
</Result>
</DescribeFabricInvitationCodeResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"DynamicMessage" : "The invitation code could not found.",
"RequestId" : "77E25463-56CB-4F1C-8EB6-8ADDFE39EF0F",
"ErrorCode" : 200,
"Success" : true,
"DynamicCode" : "InvitationCodeNotFound",
"Result" : {
"SenderId" : 26345345,
"Email" : "abc@126.com",
"SenderBid" : "27534",
"ExpireTime" : "1544411108000",
"ConsortiumId" : "consortium-lianmenyumingyi-hc5d1bwl****",
"InvitationId" : 2,
"SenderName" : "uid-35324",
"Code" : "code",
"Url" : "http://baas.console.aliyun.test/invite?code=92e7ef1934892",
"Accepted" : true,
"SendTime" : "1544411108000"
}
}
错误码
访问错误中心查看更多错误码。