searchByPhoneNumbers method
Future<DynamiteResponse<UsersSearchByPhoneNumbersResponseApplicationJson, void> >
searchByPhoneNumbers({
- required String location,
- required ContentString<
BuiltMap< search,String, BuiltList< >String> > - bool? oCSAPIRequest,
Search users by their phone numbers.
Returns a Future containing a DynamiteResponse
with the status code, deserialized body and headers.
Throws a DynamiteApiException
if the API call does not return an expected status code.
Parameters:
location
Location of the phone number (for country code).search
Phone numbers to search for.oCSAPIRequest
Required to be true for the API request to pass. Defaults totrue
.
Status codes:
- 200: Users returned
- 400: Invalid location
See:
- $searchByPhoneNumbers_Request for the request send by this method.
- $searchByPhoneNumbers_Serializer for a converter to parse the
Response
from an executed request.
Implementation
Future<_i1.DynamiteResponse<UsersSearchByPhoneNumbersResponseApplicationJson, void>> searchByPhoneNumbers({
required String location,
required ContentString<BuiltMap<String, BuiltList<String>>> search,
bool? oCSAPIRequest,
}) async {
final _request = $searchByPhoneNumbers_Request(
location: location,
search: search,
oCSAPIRequest: oCSAPIRequest,
);
final _response = await _rootClient.httpClient.send(_request);
final _serializer = $searchByPhoneNumbers_Serializer();
final _rawResponse =
await _i1.ResponseConverter<UsersSearchByPhoneNumbersResponseApplicationJson, void>(_serializer)
.convert(_response);
return _i1.DynamiteResponse.fromRawResponse(_rawResponse);
}