Query MMS Template
Invoke the QueryMMSTemplate API to retrieve details of MMS templates.
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
Action | string | Value: QueryMMSTemplate. | Yes |
AccountId | int | Project ID, Get AccountId. | Yes |
TemplateIds | []string | List of template IDs to be queried. | Yes |
Response Elements
Parameter name | Type | Description | Required |
---|---|---|---|
RetCode | int | When RetCode is not 0, the specific error description is displayed in Message. If RetCode is 0, Message will not be returned. | Yes |
Action | string | Operation name. | Yes |
Message | string | When RetCode is not 0, the specific error description is displayed in Message. | Yes |
Data | []OutTemplate | List of detailed information about MMS templates. See OutTemplate for detailed field descriptions. | No |
OutTemplate
Parameter name | Type | Description | Required |
---|---|---|---|
TemplateId | string | MMS template ID. | Yes |
TemplateName | string | MMS template name. | Yes |
MediaFile | string | Media file address, Base64 encoded, valid for 3 seconds. | Yes |
MediaType | string | Media file type. | Yes |
Text | string | MMS template text content. | Yes |
Subject | string | MMS title. | Yes |
Status | int | MMS template status. Status descriptions: 0-Pending review, 1-Under review, 2-Approved, 3-Not approved, 4-Disabled. | Yes |
ErrDesc | string | Reason for disapproval during review. | Yes |
CreateTime | int | Creation time, timestamp format. | Yes |
Attributes | string | Explanation of template variable properties. | No |
Request Example
curl --request POST 'https://api.uspeedo.com/api' \
--header 'Content-Type: application/json' \
-d '{
"Action": "QueryMMSTemplate",
"AccountId": 1,
"TemplateIds": ["TemplateId1"]
}'
Response Example
{
"Action": "QueryMMSTemplateResponse",
"Message": "",
"RetCode": 0,
"Data": [
{
"TemplateId": "TemplateId1",
"TemplateName": "mms template name",
"MediaFile": "bW1zIG1lZGlhIGRhdGE=",
"MediaType": "image/png",
"Text": "mms template text",
"Subject": "mms subject",
"Status": 2,
"ErrDesc": "",
"CreateTime": 1672502400,
"Attributes": []
}
]
}