This is the official ClickSend SDK. Documentation can be found here.
- Sign Up for a free ClickSend account.
- Copy your API key from the API Credentials area.
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import clicksend_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import clicksend_client
Please follow the installation procedure and then run the following:
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)
Documentation for our SDK and REST API can be found here.
- Type: HTTP basic authentication