get_whats_app_call_permission
¶
get_whats_app_call_permission(
origination_phone_number_id: WhatsAppPhoneNumberId,
*,
config_overrides: Optional[SocialMessagingClientConfig] = None,
destination_phone_number: Optional[WhatsAppDestinationPhoneNumber] = None,
end_user_bsuid: Optional[WhatsAppBusinessScopedUserId] = None,
) -> GetWhatsAppCallPermissionOutput
Retrieves the current calling permission for a WhatsApp end user, along with the calling actions the business is allowed to take with that user. Provide the destination phone number or the business-scoped user ID to identify the end user.
Parameters:
-
origination_phone_number_id(WhatsAppPhoneNumberId) –The unique identifier of the business phone number for which to retrieve the calling permission. The phone number identifiers are formatted as
phone-number-id-01234567890123456789012345678901. -
destination_phone_number(Optional[WhatsAppDestinationPhoneNumber], default:None) –The end user's phone number, in E.164 format, for which to retrieve the calling permission.
-
end_user_bsuid(Optional[WhatsAppBusinessScopedUserId], default:None) –The business-scoped user identifier (BSUID) of the end user for which to retrieve the calling permission.
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/social_messaging.py
2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 | |