A simple Python client for the TheySay AffectR API
Python
Permalink
Failed to load latest commit information.
affectr
README.md
requirements.txt
setup.py

README.md

TheySay AffectR API Python Client

The TheySay AffectR API Python client provides a simple interface to the TheySay AffectR API.

You can sign up for a TheySay AffectR API account at http://theysay.io.

Requirements

Python 2.7 or later.

Getting Started

Set your account details:

affectr.set_details("your username", "your password")

Next, call any classification task with your text on the AffectR API class, for example:

affectr.client.classify_intent(
    "We are planning to implement a real-time data service. " +
    "What are the advantages/disadvantages of using a Foobar-compliant database over Hype.js?"
)[0].intentType)

For more information, please visit http://docs.theysay.apiary.io/.

License

Copyright 2013 TheySay Ltd. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.