NAME
Auth
FUNCTIONS
- new($api)
-
Create a new object for accessing Auth API
Parameters
$api
API object - get_trays
-
Get traysReturn value
JSON response as a string - get_tray_by_type
-
Get tray by typeParameters
$username
Username$type
Thread typeReturn value
JSON response as a string - get_thread_details
-
List thread details based on thread idParameters
$username
Username$thread_id
Thread IDReturn value
JSON response as a string - get_thread_by_context
-
Get a specific thread by contextParameters
$username
Username$job_key
Thread ID$application_id
Application ID$context
Optional, by default 'Interviews'. ContextReturn value
JSON response as a string - get_thread_by_context_last_posts
-
Get a specific thread by context (last message content)Parameters
$username
Username$job_key
Thread ID$application_id
Application ID$context
ContextReturn value
JSON response as a string - start_new_thread
-
Send new messageParameters
$username
Username$params
Hash of parametersReturn value
JSON response as a string - reply_to_thread
-
Reply to existent threadParameters
$username
Username$thread_id
Thread ID$params
Hash of parametersReturn value
JSON response as a string - mark_thread
-
Update threads based on user actionsParameters
$username
Username$thread_id
Thread ID$params
Hash of parametersReturn value
JSON response as a string
AUTHOR
Maksym Novozhylov <mnovozhilov@upwork.com>
COPYRIGHT
Copyright © Upwork Global Corp., 2015