Metadata-Version: 2.1
Name: mindsay-sdk
Version: 1.0.0
Summary: Mindsay python client
Home-page: https://github.com/Destygo/mindsay-sdk
Author: Mindsay tech team
Author-email: tech@mindsay.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.7
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: requests

# mindsay-sdk

<img src="https://www.mindsay.com/wp-content/uploads/2019/09/Mindsay-Logo.png" align="right" width="248" height="54">

The mindsay-sdk is a python client that makes it easy to interact with the Mindsay's chatbot platform.
A Mindsay account is required.

## Installation
`pip install -e git+https://github.com/Destygo/mindsay-sdk#egg=mindsay_sdk`

## Usage
```python
from mindsay_sdk import Client

# Create mindsay client. This line will ask for your password and email code.
client = Client('your.name@mindsay.com')

# Define current environment for next operations
client.set_current_instance(1)
client.set_current_experiment(1)
client.set_current_language('fr_FR')

user_nodes = client.get_user_nodes()
print(user_nodes)
```
```
[{'name': 'Main',
  'record_id': 1,
  'service_record_id': None,
  'exploring': None,
  'display_name': '/Main',
  'resource_url': '/user_nodes/1'},
 {'name': 'After Itineraire',
  'record_id': 2,
  'service_record_id': 1,
  'exploring': None,
  'display_name': 'Itineraire/After Itineraire',
  'resource_url': '/user_nodes/2'},
 {'name': 'After Orientation',
  'record_id': 3,
  'service_record_id': 2,
  'exploring': None,
  'display_name': 'Orientation/After Orientation',
  'resource_url': '/user_nodes/3'}]
```
More examples can be found in the `examples/` folder.


