Skip to content

Commit 903559c

Browse files
andrewhubbsalexandrwang
authored andcommitted
* Deprecate the phone call endpoint (#6)
1 parent a73d726 commit 903559c

File tree

3 files changed

+2
-22
lines changed

3 files changed

+2
-22
lines changed

README.rst

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -65,24 +65,6 @@ __ https://docs.scaleapi.com/#create-transcription-task
6565
row_fields={ 'username': 'Username of submitter', 'comment_count': 'Number of comments' }
6666
)
6767
68-
Create phone call task
69-
======================
70-
71-
Check `this`__ for further information.
72-
73-
__ https://docs.scaleapi.com/#create-phone-call-task
74-
75-
.. code-block:: python
76-
77-
client.create_phonecall_task(
78-
callback_url='http://www.example.com/callback',
79-
instruction="Call this person and tell me his email address. Ask if he's happy too.",
80-
phone_number='5055006865',
81-
entity_name='Alexandr Wang',
82-
fields={ 'email': 'Email Address' },
83-
choices=['He is happy', 'He is not happy']
84-
)
85-
8668
Create comparison task
8769
======================
8870

scaleapi/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ def create_transcription_task(self, **kwargs):
143143
return Task(taskdata, self)
144144

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

150148
def create_comparison_task(self, **kwargs):
151149
validate_payload('comparison', kwargs)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
author_email = 'c@lvin.me',
3232
url = 'https://github.com/scaleapi/scaleapi-python-client',
3333
download_url = 'https://github.com/scaleapi/scaleapi-python-client/tarball/0.1.10',
34-
keywords = ['scale', 'scaleapi', 'humans', 'tasks', 'categorization', 'transcription', 'annotation', 'comparison', 'data collection', 'phone call', 'audio transcription'],
34+
keywords = ['scale', 'scaleapi', 'humans', 'tasks', 'categorization', 'transcription', 'annotation', 'comparison', 'data collection', 'audio transcription'],
3535
install_requires = install_requires,
3636
classifiers = ['Programming Language :: Python :: 2.7',
3737
'Programming Language :: Python :: 3.5',

0 commit comments

Comments
 (0)