airtimeGetOperatorsWithHttpInfo method
List airtime operators
Lists the operators of a country that the customer can choose manually (manual flow, step 1). Returns the complete list, without paging or prices, as { items: [{ id, name, countryCode, category, logoUrl }] }, ordered by name. Only operators with an offer that can be sold for a chosen operator are listed. An invalid countryCode gives 400 / 10001. Continue with operators/{id}?phoneNumber=.
Note: This method returns the HTTP Response.
Parameters:
- String countryCode (required):
Required ISO 3166-1 alpha-2 country code, in either case, for example the
details.phoneLookup.countryCodeof a search.
Implementation
Future<Response> airtimeGetOperatorsWithHttpInfo(String countryCode, { Future<void>? abortTrigger, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/b2b/airtime/operators';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'countryCode', countryCode));
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
abortTrigger: abortTrigger,
);
}