Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,6 @@ __ https://docs.scaleapi.com/#create-transcription-task
row_fields={ 'username': 'Username of submitter', 'comment_count': 'Number of comments' }
)

Create phone call task
======================

Check `this`__ for further information.

__ https://docs.scaleapi.com/#create-phone-call-task

.. code-block:: python

client.create_phonecall_task(
callback_url='http://www.example.com/callback',
instruction="Call this person and tell me his email address. Ask if he's happy too.",
phone_number='5055006865',
entity_name='Alexandr Wang',
fields={ 'email': 'Email Address' },
choices=['He is happy', 'He is not happy']
)

Create comparison task
======================

Expand Down
4 changes: 1 addition & 3 deletions scaleapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ def create_transcription_task(self, **kwargs):
return Task(taskdata, self)

def create_phonecall_task(self, **kwargs):
validate_payload('phonecall', kwargs)
taskdata = self._postrequest('task/phonecall', payload=kwargs)
return Task(taskdata, self)
raise ScaleException('Phone call tasks have been deprecated and are no longer available.', 400)

def create_comparison_task(self, **kwargs):
validate_payload('comparison', kwargs)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
author_email = 'c@lvin.me',
url = 'https://github.com/scaleapi/scaleapi-python-client',
download_url = 'https://github.com/scaleapi/scaleapi-python-client/tarball/0.1.10',
keywords = ['scale', 'scaleapi', 'humans', 'tasks', 'categorization', 'transcription', 'annotation', 'comparison', 'data collection', 'phone call', 'audio transcription'],
keywords = ['scale', 'scaleapi', 'humans', 'tasks', 'categorization', 'transcription', 'annotation', 'comparison', 'data collection', 'audio transcription'],
install_requires = install_requires,
classifiers = ['Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
Expand Down