PHP Class Intercom\IntercomConversations

显示文件 Open project: intercom/intercom-php Class Usage Examples

Public Methods

Method Description
__construct ( IntercomClient $client ) IntercomConversations constructor.
conversationPath ( string $id ) : string Returns endpoint path to Conversation with given ID.
conversationReplyPath ( string $id ) : string Returns endpoint path to Conversation Reply for Conversation with given ID.
getConversation ( string $id ) : mixed Returns single Conversation.
getConversations ( array $options ) : mixed Returns list of Conversations.
replyToConversation ( string $id, array $options ) : mixed Creates Conversation Reply to Conversation with given ID.

Method Details

__construct() public method

IntercomConversations constructor.
public __construct ( IntercomClient $client )
$client IntercomClient

conversationPath() public method

Returns endpoint path to Conversation with given ID.
public conversationPath ( string $id ) : string
$id string
return string

conversationReplyPath() public method

Returns endpoint path to Conversation Reply for Conversation with given ID.
public conversationReplyPath ( string $id ) : string
$id string
return string

getConversation() public method

Returns single Conversation.
See also: https://developers.intercom.io/reference#get-a-single-conversation
public getConversation ( string $id ) : mixed
$id string
return mixed

getConversations() public method

Returns list of Conversations.
See also: https://developers.intercom.io/reference#list-conversations
public getConversations ( array $options ) : mixed
$options array
return mixed

replyToConversation() public method

Creates Conversation Reply to Conversation with given ID.
See also: https://developers.intercom.io/reference#replying-to-a-conversation
public replyToConversation ( string $id, array $options ) : mixed
$id string
$options array
return mixed