Avaamo API for Python
Project description
Avaamo API for Python
- Provides Python Bindings for Avaamo APIs
- Command Line tools for accessing APIs
Requirements
- Python version 3.6 or later
- Requests library 2.21 or later
Installation
This installs the Avaamo code into your python environment
$ pip install avaamo
A best practice is to create a separate virtual python environment for each of your python application which is described here
Configuration
Configuration is passed via environment variables as follows (example data displayed):
export AVAAMO_ENDPOINT=c0.avaamo.com
export AVAAMO_ACCESS_TOKEN=7358b733270342559cb736b04a80c490
export AVAAMO_BOT_ID=5051
where
AVAAMO_ENVPOINT
is the host name where your account resides
AVAAMO_ACCESS_TOKEN
is the API access token for a specific user from settings in your account
Command Line Tools
Add a document to existing Avaamo Answers Knowledge Pack
usage: avaamo-add-doc [-h] -a access_token -n endpoint -b bot_id -e
YYYY-MM-DD -s YYYY-MM-DD
Extract analytics data
optional arguments:
-h, --help show this help message and exit
-a access_token, --access-token access_token
API access token
-n endpoint, --endpoint endpoint
API endpoint or domain name
-b bot_id, --bot-id bot_id
Specifies the bot to export data from
-e YYYY-MM-DD, --end-dt YYYY-MM-DD
End Date
-s YYYY-MM-DD, --start-dt YYYY-MM-DD
Start Date
Analytics Data
See Analytics Data for detail information on the contents provide by the anlytic APIs.
See Extracting for a procedure on how use the tools to extract the analytics data
Upload Document
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file avaamo-0.1.2.tar.gz
.
File metadata
- Download URL: avaamo-0.1.2.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f51f63bf4e42c2574b2bdc3f94710d39834f2020195057e874d7447833556b2a |
|
MD5 | 9904806162ea5bd6d6710e071c55e035 |
|
BLAKE2b-256 | f5534b1bfa47c3e8a01ffe2f0d2142384d580f183cf5b98f10978c1a5e7e8ded |