Querying Third-Party Live Platforms
Function
Queries third-party live platform information.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
URI
GET /v1/{project_id}/live-platforms/platforms/{platform_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
|
platform_id |
Yes |
String |
Live platform ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
No |
String |
User token. This parameter is mandatory when token authentication is used. You can obtain the token by calling the IAM API used to obtain a user token. Value of X-Subject-Token in the response header. |
|
Authorization |
No |
String |
Authentication information. This parameter is mandatory for AK/SK authentication. |
|
X-Sdk-Date |
No |
String |
Time when the request is sent. This parameter is mandatory for AK/SK authentication. The format is YYYYMMDD'T'HHMMSS'Z'. |
|
X-Project-Id |
No |
String |
Project ID. This parameter is mandatory for AK/SK authentication. |
|
X-App-UserId |
No |
String |
Third-party user ID, which does not allow Chinese characters. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
X-Request-Id |
String |
Request ID. |
|
Parameter |
Type |
Description |
|---|---|---|
|
platform_id |
String |
Platform ID |
|
access_type |
String |
Interconnected platform type.
|
|
name |
String |
Live platform name |
|
authorization_info |
PlatformAuthorizationInfo object |
Live platform authorization information |
|
auth_config |
CustomPlatformAuthConfig object |
Authentication configuration of the custom live platform |
|
callback_config |
Array of StandardPlatformApiConfig objects |
Callback configuration of the custom live platform. Only one configuration is retained for each type. If there are multiple configurations, one configuration is retained randomly. |
|
Parameter |
Type |
Description |
|---|---|---|
|
authorize_state |
String |
Authorization status.
|
|
authorized_time |
String |
Authorization time |
|
expire_time |
String |
Expiration time |
|
account |
String |
Authorized account information. For Meituan, set this parameter to opBizCode. |
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
String |
Key. This parameter is used for a custom live platform. How to use: When calling the API, add two header fields: x-hw-mss-time and x-hw-mss-secret.
Example: 66df9308 (that is, 08:30:00 of September 10, 2024)
Example: URL https://api.example.com/v1/products?live_id=111&limit=10&offset=0 Key: GCTbw44s6MPLh4GqgDpnfuFHgy25Enly hwTime: 66df9308 x-hw-mss-secret=hmac_sha256(GCTbw44s6MPLh4GqgDpnfuFHgy25Enly,api.example.com/v1/products?limit=10&live_id=111&offset=066df9308)=5e7fe8869a12a87ea966d9edbc02e38cd4ce62c73b8b05c638f15835e78902d7 x-hw-mss-secret: 5e7fe8869a12a87ea966d9edbc02e38cd4ce62c73b8b05c638f15835e78902d7 |
|
Parameter |
Type |
Description |
|---|---|---|
|
api_type |
String |
API type.
|
|
url |
String |
URL. Only HTTPS URLs are supported. |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Status code: 401
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Example Requests
GET https://metastudio.xxxx.myhuaweicloud.com/v1/123456xxx/live-platforms/abcd56xxx
Example Responses
Status code: 200
Successful.
{
"name" : "meituan"
}
Status code: 400
Parameters error, including the error code and its description.
{
"error_code" : "MSS.00000003",
"error_msg" : "Invalid parameter"
}
Status code: 401
Authentication is not performed or fails.
{
"error_code" : "MSS.00000001",
"error_msg" : "Unauthorized"
}
Status code: 500
Internal service error.
{
"error_code" : "MSS.00000004",
"error_msg" : "Internal Error"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Successful. |
|
400 |
Parameters error, including the error code and its description. |
|
401 |
Authentication is not performed or fails. |
|
500 |
Internal service error. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot