PHP 클래스 Intercom\IntercomClient

파일 보기 프로젝트 열기: intercom/intercom-php 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$admins IntercomAdmins
$bulk IntercomBulk
$companies IntercomCompanies
$conversations IntercomConversations
$counts IntercomCounts
$events IntercomEvents
$leads IntercomLeads
$messages IntercomMessages
$segments IntercomSegments
$tags IntercomTags
$users IntercomUsers

보호된 프로퍼티들

프로퍼티 타입 설명
$passwordPart API password authentication
$usernamePart API user authentication

공개 메소드들

메소드 설명
__construct ( string $usernamePart, string $passwordPart ) IntercomClient constructor.
delete ( string $endpoint, string $json ) : mixed Sends DELETE request to Intercom API.
get ( string $endpoint, string $query ) : mixed
getAuth ( ) : array Returns authentication parameters.
nextPage ( array $pages ) : mixed Returns next page of the result.
post ( string $endpoint, string $json ) : mixed Sends POST request to Intercom API.
setClient ( Client $client ) Sets GuzzleHttp client.

비공개 메소드들

메소드 설명
handleResponse ( Response $response ) : mixed
setDefaultClient ( )

메소드 상세

__construct() 공개 메소드

IntercomClient constructor.
public __construct ( string $usernamePart, string $passwordPart )
$usernamePart string App ID.
$passwordPart string Api Key.

delete() 공개 메소드

Sends DELETE request to Intercom API.
public delete ( string $endpoint, string $json ) : mixed
$endpoint string
$json string
리턴 mixed

get() 공개 메소드

public get ( string $endpoint, string $query ) : mixed
$endpoint string
$query string
리턴 mixed

getAuth() 공개 메소드

Returns authentication parameters.
public getAuth ( ) : array
리턴 array

nextPage() 공개 메소드

Returns next page of the result.
public nextPage ( array $pages ) : mixed
$pages array
리턴 mixed

post() 공개 메소드

Sends POST request to Intercom API.
public post ( string $endpoint, string $json ) : mixed
$endpoint string
$json string
리턴 mixed

setClient() 공개 메소드

Sets GuzzleHttp client.
public setClient ( Client $client )
$client GuzzleHttp\Client

프로퍼티 상세

$admins 공개적으로 프로퍼티

public IntercomAdmins,intercom $admins
리턴 IntercomAdmins

$bulk 공개적으로 프로퍼티

public IntercomBulk,intercom $bulk
리턴 IntercomBulk

$companies 공개적으로 프로퍼티

public IntercomCompanies,intercom $companies
리턴 IntercomCompanies

$conversations 공개적으로 프로퍼티

public IntercomConversations,intercom $conversations
리턴 IntercomConversations

$counts 공개적으로 프로퍼티

public IntercomCounts,intercom $counts
리턴 IntercomCounts

$events 공개적으로 프로퍼티

public IntercomEvents,intercom $events
리턴 IntercomEvents

$leads 공개적으로 프로퍼티

public IntercomLeads,intercom $leads
리턴 IntercomLeads

$messages 공개적으로 프로퍼티

public IntercomMessages,intercom $messages
리턴 IntercomMessages

$passwordPart 보호되어 있는 프로퍼티

API password authentication
protected $passwordPart

$segments 공개적으로 프로퍼티

public IntercomSegments,intercom $segments
리턴 IntercomSegments

$tags 공개적으로 프로퍼티

public IntercomTags,intercom $tags
리턴 IntercomTags

$usernamePart 보호되어 있는 프로퍼티

API user authentication
protected $usernamePart

$users 공개적으로 프로퍼티

public IntercomUsers,intercom $users
리턴 IntercomUsers