GetLinkedWhatsAppBusinessAccountPhoneNumber
Source:
src/AWS/SocialMessaging/GetLinkedWhatsAppBusinessAccountPhoneNumber.ts
Runtime binding for social-messaging:GetLinkedWhatsAppBusinessAccountPhoneNumber.
Retrieves the details (display name, quality rating, Meta ids) of one of the linked account’s WhatsApp phone numbers, plus the owning WABA id.
The caller addresses one of the bound account’s phone numbers per
request; phone-number ARNs are provisioned by Meta under the WABA, so
the deploy-time half grants social-messaging:GetLinkedWhatsAppBusinessAccountPhoneNumber on *.
Provide the implementation with
Effect.provide(AWS.SocialMessaging.GetLinkedWhatsAppBusinessAccountPhoneNumberHttp).
Reading Phone Numbers
Section titled “Reading Phone Numbers”// init — bind the operation to the linked WABAconst getPhoneNumber = yield* AWS.SocialMessaging.GetLinkedWhatsAppBusinessAccountPhoneNumber(account);
// runtimeconst details = yield* getPhoneNumber({ id: "phone-number-id-0123456789abcdef",});const rating = details.phoneNumber?.qualityRating;