Page MenuHomePhabricator

HipChatClient

Authored By
joshuaspence
Feb 16 2015, 8:46 PM
Size
410 B
Referenced Files
None
Subscribers
None

HipChatClient

class HipChatClient {
private function makeRequest(
$api_method,
$args = array(),
$http_method = 'GET') {
$args['auth_token'] = $this->authToken;
$args['format'] = 'json';
$future = id(new HTTPSFuture($this->apiTarget.$api_method, $args))
->setMethod($http_method);
list($response, $data, $headers) = $future->resolvex();
return phutil_json_decode($data, true);
}
}

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/l3/a7/kkgme7ta4xfekaqr
Default Alt Text
HipChatClient (410 B)

Event Timeline