QueryTicketInfo
Retrieves the details of a specified ticket for logon-free embedded reports.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quickbi-public:QueryTicketInfo |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Ticket |
string |
Yes |
The ticket value. |
a27a9aec-****-****-bd40-1a21ea41d7c5 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D787E1A3-A93C-424A-B626-C2B05DF8D885 |
| Result |
object |
The details of the generated ticket. |
|
| AccessTicket |
string |
The ticket. |
a27a9aec-****-****-bd40-1a21ea41d7c5 |
| CmptId |
string |
The component ID in the report. |
sfdgsds-****-****-a608-mghdgd |
| GlobalParam |
string |
The global parameters. |
[{"paramKey":"price","joinType":"and","conditionList":[{"operate":">","value":"0"}]},{"paramKey":"product_type","joinType":"and","conditionList":[{"operate":"in","value":["]}]}]\n |
| InvalidTime |
string |
The expiration time of the ticket. |
2022-01-30 03:03:49 |
| MaxTicketNum |
integer |
The maximum number of supported tickets. |
9999 |
| OrganizationId |
string |
The organization ID. |
2fe4fbd8-****-****-b3e1-e92c7af083ea |
| RegisterTime |
string |
The registration time of the ticket. |
2022-01-09 22:23:49 |
| UsedTicketNum |
integer |
The number of consumed tickets. |
47 |
| UserId |
string |
The Quick BI user ID. |
974e50**********9033f46 |
| WatermarkParam |
string |
The watermark parameters. |
ticket |
| WorksId |
string |
The report ID. |
ccd3428c-****-****-a608-26bae29dffee |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "D787E1A3-A93C-424A-B626-C2B05DF8D885",
"Result": {
"AccessTicket": "a27a9aec-****-****-bd40-1a21ea41d7c5",
"CmptId": "sfdgsds-****-****-a608-mghdgd",
"GlobalParam": "[{"paramKey":"price","joinType":"and","conditionList":[{"operate":">","value":"0"}]},{"paramKey":"product_type","joinType":"and","conditionList":[{"operate":"in","value":["]}]}]\\n",
"InvalidTime": "2022-01-30 03:03:49",
"MaxTicketNum": 9999,
"OrganizationId": "2fe4fbd8-****-****-b3e1-e92c7af083ea",
"RegisterTime": "2022-01-09 22:23:49",
"UsedTicketNum": 47,
"UserId": "974e50**********9033f46",
"WatermarkParam": "ticket",
"WorksId": "ccd3428c-****-****-a608-26bae29dffee"
},
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Authorize3rdTicket.BindedWorks.Mismatch | The report bound by the ticket mismatches the actual report. | The report bound to the ticket does not match the report on the accessed page. |
| 400 | Authorize3rdTicket.Expired | Ticket [%s] has expired. | The current ticket [%s] has expired. |
| 400 | Authorize3rdTicket.HasNo.LoginToken | The request [%s] has no token. | No token information is found for the current request [%s]. |
| 400 | Authorize3rdTicket.NotExist | Ticket %s does not exist. | The current ticket %s does not exist. |
| 400 | Authorize3rdTicket.Num.Exceed | The number of tickets %s is invalid. | The number of tickets is invalid. |
| 400 | Authorize3rdTicket.Num.HasNoLeft | There is no ticket number left, please generate new ticket. | The current ticket has been fully consumed. Please generate a new one. |
| 400 | NoPermissionTo.Operate.Object | You are not authorized to operate the objects. | You are not authorized to do this. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.