Skip to content

Commit 8df94da

Browse files
Regenerate from the latest API spec
1 parent 13dd862 commit 8df94da

4 files changed

Lines changed: 755 additions & 1 deletion

File tree

‎docs/InformationApi.md‎

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Method | HTTP request | Description
88
[**pool_retrieve_all**](InformationApi.md#pool_retrieve_all) | **POST** /pool/retrieve_all | Pool list
99
[**pool_retrieve_valid**](InformationApi.md#pool_retrieve_valid) | **POST** /pool/retrieve_valid | Suggested Pools
1010
[**request_balance**](InformationApi.md#request_balance) | **POST** /request/balance | Balance
11+
[**request_history_search**](InformationApi.md#request_history_search) | **POST** /request/history_search | History search
1112
[**request_success_rate**](InformationApi.md#request_success_rate) | **POST** /request/success_rate | Retrieve country success rates per service
1213
[**request_suggested_countries**](InformationApi.md#request_suggested_countries) | **POST** /request/suggested_countries | Suggested Countries
1314
[**service_retrieve_all**](InformationApi.md#service_retrieve_all) | **GET** /service/retrieve_all | Service list
@@ -305,6 +306,89 @@ This endpoint does not need any parameter.
305306

306307
[[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)
307308

309+
# **request_history_search**
310+
> object request_history_search(search, cursor=cursor, limit=limit)
311+
312+
History search
313+
314+
_Not documented yet: the parameters below come straight from the code._
315+
316+
### Example
317+
318+
* Bearer Authentication (bearerAuth):
319+
320+
```python
321+
import smspool_sdk
322+
from smspool_sdk.rest import ApiException
323+
from pprint import pprint
324+
325+
# Defining the host is optional and defaults to https://api.smspool.net
326+
# See configuration.py for a list of all supported configuration parameters.
327+
configuration = smspool_sdk.Configuration(
328+
host = "https://api.smspool.net"
329+
)
330+
331+
# The client must configure the authentication and authorization parameters
332+
# in accordance with the API server security policy.
333+
# Examples for each auth method are provided below, use the example that
334+
# satisfies your auth use case.
335+
336+
# Configure Bearer authorization: bearerAuth
337+
configuration = smspool_sdk.Configuration(
338+
access_token = os.environ["BEARER_TOKEN"]
339+
)
340+
341+
# Enter a context with an instance of the API client
342+
with smspool_sdk.ApiClient(configuration) as api_client:
343+
# Create an instance of the API class
344+
api_instance = smspool_sdk.InformationApi(api_client)
345+
search = 'search_example' # str |
346+
cursor = 'cursor_example' # str | (optional)
347+
limit = 56 # int | (optional)
348+
349+
try:
350+
# History search
351+
api_response = api_instance.request_history_search(search, cursor=cursor, limit=limit)
352+
print("The response of InformationApi->request_history_search:\n")
353+
pprint(api_response)
354+
except Exception as e:
355+
print("Exception when calling InformationApi->request_history_search: %s\n" % e)
356+
```
357+
358+
359+
360+
### Parameters
361+
362+
363+
Name | Type | Description | Notes
364+
------------- | ------------- | ------------- | -------------
365+
**search** | **str**| |
366+
**cursor** | **str**| | [optional]
367+
**limit** | **int**| | [optional]
368+
369+
### Return type
370+
371+
**object**
372+
373+
### Authorization
374+
375+
[bearerAuth](../README.md#bearerAuth)
376+
377+
### HTTP request headers
378+
379+
- **Content-Type**: application/x-www-form-urlencoded
380+
- **Accept**: application/json
381+
382+
### HTTP response details
383+
384+
| Status code | Description | Response headers |
385+
|-------------|-------------|------------------|
386+
**200** | JSON response | - |
387+
**401** | Malformed API key | - |
388+
**403** | Unknown or revoked API key | - |
389+
390+
[[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)
391+
308392
# **request_success_rate**
309393
> object request_success_rate(service, country=country)
310394

‎docs/SMSApi.md‎

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Method | HTTP request | Description
1111
[**request_history**](SMSApi.md#request_history) | **POST** /request/history | Order History
1212
[**sms_activate**](SMSApi.md#sms_activate) | **POST** /sms/activate | Activate SMS
1313
[**sms_all_stock**](SMSApi.md#sms_all_stock) | **POST** /sms/all_stock | One-time stock for all services
14+
[**sms_archive**](SMSApi.md#sms_archive) | **POST** /sms/archive | Archive
1415
[**sms_cancel**](SMSApi.md#sms_cancel) | **POST** /sms/cancel | Cancel SMS
1516
[**sms_cancel_all**](SMSApi.md#sms_cancel_all) | **POST** /sms/cancel_all | Cancel All SMS
1617
[**sms_check**](SMSApi.md#sms_check) | **POST** /sms/check | Check SMS
@@ -633,6 +634,85 @@ No authorization required
633634

634635
[[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)
635636

637+
# **sms_archive**
638+
> object sms_archive(orderid)
639+
640+
Archive
641+
642+
_Not documented yet: the parameters below come straight from the code._
643+
644+
### Example
645+
646+
* Bearer Authentication (bearerAuth):
647+
648+
```python
649+
import smspool_sdk
650+
from smspool_sdk.rest import ApiException
651+
from pprint import pprint
652+
653+
# Defining the host is optional and defaults to https://api.smspool.net
654+
# See configuration.py for a list of all supported configuration parameters.
655+
configuration = smspool_sdk.Configuration(
656+
host = "https://api.smspool.net"
657+
)
658+
659+
# The client must configure the authentication and authorization parameters
660+
# in accordance with the API server security policy.
661+
# Examples for each auth method are provided below, use the example that
662+
# satisfies your auth use case.
663+
664+
# Configure Bearer authorization: bearerAuth
665+
configuration = smspool_sdk.Configuration(
666+
access_token = os.environ["BEARER_TOKEN"]
667+
)
668+
669+
# Enter a context with an instance of the API client
670+
with smspool_sdk.ApiClient(configuration) as api_client:
671+
# Create an instance of the API class
672+
api_instance = smspool_sdk.SMSApi(api_client)
673+
orderid = 'orderid_example' # str |
674+
675+
try:
676+
# Archive
677+
api_response = api_instance.sms_archive(orderid)
678+
print("The response of SMSApi->sms_archive:\n")
679+
pprint(api_response)
680+
except Exception as e:
681+
print("Exception when calling SMSApi->sms_archive: %s\n" % e)
682+
```
683+
684+
685+
686+
### Parameters
687+
688+
689+
Name | Type | Description | Notes
690+
------------- | ------------- | ------------- | -------------
691+
**orderid** | **str**| |
692+
693+
### Return type
694+
695+
**object**
696+
697+
### Authorization
698+
699+
[bearerAuth](../README.md#bearerAuth)
700+
701+
### HTTP request headers
702+
703+
- **Content-Type**: application/x-www-form-urlencoded
704+
- **Accept**: application/json
705+
706+
### HTTP response details
707+
708+
| Status code | Description | Response headers |
709+
|-------------|-------------|------------------|
710+
**200** | JSON response | - |
711+
**401** | Malformed API key | - |
712+
**403** | Unknown or revoked API key | - |
713+
714+
[[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)
715+
636716
# **sms_cancel**
637717
> object sms_cancel(orderid=orderid, orderids=orderids, expiry=expiry, ban=ban)
638718

0 commit comments

Comments
 (0)