get_whats_app_message_template
async
¶
get_whats_app_message_template(
id: LinkedWhatsAppBusinessAccountId,
*,
config_overrides: Optional[AsyncSocialMessagingClientConfig] = None,
meta_template_id: Optional[MetaTemplateId] = None,
template_name: Optional[MetaTemplateName] = None,
template_language_code: Optional[MetaTemplateLanguage] = None,
) -> GetWhatsAppMessageTemplateOutput
Retrieves a specific WhatsApp message template.
Parameters:
-
meta_template_id(Optional[MetaTemplateId], default:None) –The numeric ID of the template assigned by Meta.
-
id(LinkedWhatsAppBusinessAccountId) –The ID of the WhatsApp Business Account associated with this template.
-
template_name(Optional[MetaTemplateName], default:None) –The name of the message template. Use together with
templateLanguageCodeas an alternative tometaTemplateIdto identify a template. -
template_language_code(Optional[MetaTemplateLanguage], default:None) –The language code of the message template (for example,
enoren_US). Use together withtemplateNameas an alternative tometaTemplateIdto identify a template.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ValidationException–The request contains an invalid parameter value.
-
AccessDeniedByMetaException–You do not have sufficient access to perform this action.
-
DependencyException–Thrown when performing an action because a dependency would be broken.
-
InternalServiceException–The request processing has failed because of an unknown error, exception, or failure.
-
InvalidParametersException–One or more parameters provided to the action are not valid.
-
ResourceNotFoundException–The resource was not found.
-
ThrottledRequestException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_socialmessaging/_services/async_social_messaging.py
1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 | |