Skip to content

Ilhasoft/chatito-bothub-extension

Repository files navigation

Chatito bothub extension

An automated use of the bothub API by python coding.

Python Version License GPL-3.0

Dependencies

Installation

First of all, clone this repository using the following command:

$ git clone https://github.com/Ilhasoft/chatito-bothub-extension.git
$ cd chatito-bothub-extension

Create a virtual environment using python:

$ python -m venv env
$ source env/bin/activate

Install the dependences

$ pip install -r requirements.txt

Basic virtual environment commands:

To enter in the virtual environment:

$ source env/bin/activate

To exit from the virtual environment:

$ deactivate

Usage

First, go to .env file and fill the variables with the respective values:

Variable Example value Explanation
BOTHUB_API_URL https://api.bothub.it/v2 Base url of the bothub api version that you gonna use.
REPOSITORY_UUID d68da147-9aff-42b7-8062-b16f8a543ac2 The repository UUID.  You can get it in your network browser log.
REPOSITORY_VERSION_ID 373 The repository version id.  You can get it in your network browser log.
ACCOUNT_API_TOKEN ab245d24bcv845c7a73e34d17f9843e6346058c9 Your account api token that created when you create a bothub account. You can get it in your network browser log.

After filling the environment variables you must to enter in the virtual environment...

$ source env/bin/activate

And call the main.py code to use the functions.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Copyright

See the LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages