|
| 1 | +# messente_api.NumberLookupApi |
| 2 | + |
| 3 | +All URIs are relative to *https://api.messente.com/v1* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**fetch_info**](NumberLookupApi.md#fetch_info) | **POST** /hlr/sync | Requests info about phone numbers |
| 8 | + |
| 9 | + |
| 10 | +# **fetch_info** |
| 11 | +> SyncNumberLookupSuccess fetch_info(numbers_to_investigate) |
| 12 | +
|
| 13 | +Requests info about phone numbers |
| 14 | + |
| 15 | +### Example |
| 16 | + |
| 17 | +* Basic Authentication (basicAuth): |
| 18 | +```python |
| 19 | +from __future__ import print_function |
| 20 | +import time |
| 21 | +import messente_api |
| 22 | +from messente_api.rest import ApiException |
| 23 | +from pprint import pprint |
| 24 | +configuration = messente_api.Configuration() |
| 25 | +# Configure HTTP basic authorization: basicAuth |
| 26 | +configuration.username = 'YOUR_USERNAME' |
| 27 | +configuration.password = 'YOUR_PASSWORD' |
| 28 | + |
| 29 | +# Defining host is optional and default to https://api.messente.com/v1 |
| 30 | +configuration.host = "https://api.messente.com/v1" |
| 31 | +# Create an instance of the API class |
| 32 | +api_instance = messente_api.NumberLookupApi(messente_api.ApiClient(configuration)) |
| 33 | +numbers_to_investigate = {"numbers":["+37251000000","+37251000001"]} # NumbersToInvestigate | Numbers for lookup |
| 34 | + |
| 35 | +try: |
| 36 | + # Requests info about phone numbers |
| 37 | + api_response = api_instance.fetch_info(numbers_to_investigate) |
| 38 | + pprint(api_response) |
| 39 | +except ApiException as e: |
| 40 | + print("Exception when calling NumberLookupApi->fetch_info: %s\n" % e) |
| 41 | +``` |
| 42 | + |
| 43 | +### Parameters |
| 44 | + |
| 45 | +Name | Type | Description | Notes |
| 46 | +------------- | ------------- | ------------- | ------------- |
| 47 | + **numbers_to_investigate** | [**NumbersToInvestigate**](NumbersToInvestigate.md)| Numbers for lookup | |
| 48 | + |
| 49 | +### Return type |
| 50 | + |
| 51 | +[**SyncNumberLookupSuccess**](SyncNumberLookupSuccess.md) |
| 52 | + |
| 53 | +### Authorization |
| 54 | + |
| 55 | +[basicAuth](../README.md#basicAuth) |
| 56 | + |
| 57 | +### HTTP request headers |
| 58 | + |
| 59 | + - **Content-Type**: application/json |
| 60 | + - **Accept**: application/json |
| 61 | + |
| 62 | +### HTTP response details |
| 63 | +| Status code | Description | Response headers | |
| 64 | +|-------------|-------------|------------------| |
| 65 | +**200** | Info about phone numbers returned | - | |
| 66 | +**400** | Invalid request | - | |
| 67 | +**401** | Unauthorized | - | |
| 68 | +**402** | Failed crediting | - | |
| 69 | + |
| 70 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 71 | + |
0 commit comments