Overview

Namespaces

  • PHP
  • Upwork
    • API
      • AuthTypes
      • Interfaces
      • Routers
        • Activities
        • Freelancers
        • Hr
          • Clients
          • Freelancers
        • Jobs
        • Organization
        • Reports
          • Finance

Classes

  • Auth
  • Mc
  • Metadata
  • Payments
  • Snapshot
  • Teams
  • Workdays
  • Workdiary
  • Overview
  • Namespace
  • Class
  • Tree

Class Mc

Message Center

Upwork\API\Client
Extended by Upwork\API\Routers\Mc
Final
Namespace: Upwork\API\Routers
Link: http://developers.upwork.com/Message-Center-API
Located at Upwork/API/Routers/Mc.php
Methods summary
public
# __construct( Upwork\API\Client $client )

Constructor

Constructor

Parameters

$client
Upwork\API\Client
$client Client object

Overrides

Upwork\API\Client::__construct()
public object
# getTrays( )

Get trays

Get trays

Returns

object
public object
# getTrayByType( string $username, string $type )

Get tray by type

Get tray by type

Parameters

$username
string
$username Username
$type
string
$type Tray type/name

Returns

object
public object
# getThreadDetails( string $username, integer $threadId )

List thread details based on thread id

List thread details based on thread id

Parameters

$username
string
$username Username
$threadId
integer
$threadId Thread ID

Returns

object
public object
# getThreadByContext( string $username, string $jobKey, integer $applicationId, string $context = 'Interviews' )

Get a specific thread by context

Get a specific thread by context

Parameters

$username
string
$username Username
$jobKey
string
$jobKey Job key
$applicationId
integer
$applicationId Application ID
$context
string
$context (Optional) Context

Returns

object
public object
# getThreadByContextLastPosts( string $username, string $jobKey, integer $applicationId, string $context = 'Interviews' )

Get a specific thread by context (last message content)

Get a specific thread by context (last message content)

Parameters

$username
string
$username Username
$jobKey
string
$jobKey Job key
$applicationId
integer
$applicationId Application ID
$context
string
$context (Optional) Context

Returns

object
public object
# markThread( string $username, integer $threadId, array $params )

Update threads based on user actions

Update threads based on user actions

Parameters

$username
string
$username Username
$threadId
integer
$threadId Thread ID
$params
array
$params Parameters

Returns

object
public object
# startNewThread( string $username, array $params )

Send new message

Send new message

Parameters

$username
string
$username User ID
$params
array
$params Parameters

Returns

object
public object
# replyToThread( string $username, integer $threadId, array $params )

Reply to existend thread

Reply to existend thread

Parameters

$username
string
$username User ID
$threadId
integer
$threadId Thread ID
$params
array
$params Parameters

Returns

object
Methods inherited from Upwork\API\Client
_request(), auth(), delete(), get(), getRequestToken(), getServer(), post(), put()
Constants summary
mixed ENTRY_POINT UPWORK_API_EP_NAME
#
Constants inherited from Upwork\API\Client
DATA_FORMAT
Properties inherited from Upwork\API\Client
$_epoint, $_server
API documentation generated by ApiGen 2.8.0