All URIs are relative to https://rest.clicksend.com/v3
| Method | HTTP request | Description |
|---|---|---|
| account_get | GET /account | Get account information |
| account_post | POST /account | Create a new account |
| account_useage_by_subaccount_get | GET /account/usage/{year}/{month}/subaccount | Get account useage by subaccount |
| account_verify_send_put | PUT /account-verify/send | Send account activation token |
| account_verify_verify_by_activation_token_put | PUT /account-verify/verify/{activation_token} | Verify new account |
| forgot_password_put | PUT /forgot-password | Forgot password |
| forgot_password_verify_put | PUT /forgot-password/verify | Verify forgot password |
| forgot_username_put | PUT /forgot-username | Forgot username |
str account_get()
Get account information
Get account details
from __future__ import print_function
import time
import clicksend_client
from clicksend_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = clicksend_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = clicksend_client.AccountApi(clicksend_client.ApiClient(configuration))
try:
# Get account information
api_response = api_instance.account_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountApi->account_get: %s\n" % e)This endpoint does not need any parameter.
str
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str account_post(account)
Create a new account
Create An Account
from __future__ import print_function
import time
import clicksend_client
from clicksend_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = clicksend_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = clicksend_client.AccountApi(clicksend_client.ApiClient(configuration))
account = clicksend_client.Account() # Account | Account model
try:
# Create a new account
api_response = api_instance.account_post(account)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountApi->account_post: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| account | Account | Account model |
str
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str account_useage_by_subaccount_get(year, month)
Get account useage by subaccount
Get account useage by subaccount
from __future__ import print_function
import time
import clicksend_client
from clicksend_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = clicksend_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = clicksend_client.AccountApi(clicksend_client.ApiClient(configuration))
year = 56 # int | Year to filter by (yyyy)
month = 56 # int | Month to filter by (mm)
try:
# Get account useage by subaccount
api_response = api_instance.account_useage_by_subaccount_get(year, month)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountApi->account_useage_by_subaccount_get: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| year | int | Year to filter by (yyyy) | |
| month | int | Month to filter by (mm) |
str
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str account_verify_send_put(account_verify)
Send account activation token
Send account activation token
from __future__ import print_function
import time
import clicksend_client
from clicksend_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = clicksend_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = clicksend_client.AccountApi(clicksend_client.ApiClient(configuration))
account_verify = clicksend_client.AccountVerify() # AccountVerify | Account details
try:
# Send account activation token
api_response = api_instance.account_verify_send_put(account_verify)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountApi->account_verify_send_put: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| account_verify | AccountVerify | Account details |
str
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str account_verify_verify_by_activation_token_put(activation_token)
Verify new account
Verify new account
from __future__ import print_function
import time
import clicksend_client
from clicksend_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = clicksend_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = clicksend_client.AccountApi(clicksend_client.ApiClient(configuration))
activation_token = 56 # int |
try:
# Verify new account
api_response = api_instance.account_verify_verify_by_activation_token_put(activation_token)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountApi->account_verify_verify_by_activation_token_put: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| activation_token | int |
str
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str forgot_password_put(forgot_password=forgot_password)
Forgot password
Forgot password
from __future__ import print_function
import time
import clicksend_client
from clicksend_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = clicksend_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = clicksend_client.AccountApi(clicksend_client.ApiClient(configuration))
forgot_password = clicksend_client.ForgotPassword() # ForgotPassword | (optional)
try:
# Forgot password
api_response = api_instance.forgot_password_put(forgot_password=forgot_password)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountApi->forgot_password_put: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| forgot_password | ForgotPassword | [optional] |
str
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str forgot_password_verify_put(verify_password)
Verify forgot password
Verify forgot password
from __future__ import print_function
import time
import clicksend_client
from clicksend_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = clicksend_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = clicksend_client.AccountApi(clicksend_client.ApiClient(configuration))
verify_password = clicksend_client.AccountForgotPasswordVerify() # AccountForgotPasswordVerify | verifyPassword data
try:
# Verify forgot password
api_response = api_instance.forgot_password_verify_put(verify_password)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountApi->forgot_password_verify_put: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| verify_password | AccountForgotPasswordVerify | verifyPassword data |
str
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str forgot_username_put(forgot_username=forgot_username)
Forgot username
Forgot username
from __future__ import print_function
import time
import clicksend_client
from clicksend_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = clicksend_client.AccountApi()
forgot_username = clicksend_client.ForgotUsername() # ForgotUsername | (optional)
try:
# Forgot username
api_response = api_instance.forgot_username_put(forgot_username=forgot_username)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountApi->forgot_username_put: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| forgot_username | ForgotUsername | [optional] |
str
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]