Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1725
HipChatClient
Active
Public
Actions
Authored by
joshuaspence
on Feb 16 2015, 8:46 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F307422: HipChatClient
Feb 16 2015, 8:46 PM
2015-02-16 20:46:51 (UTC+0)
Subscribers
None
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);
}
}
Event Timeline
joshuaspence
edited the content of this paste.
(Show Details)
Feb 16 2015, 8:46 PM
2015-02-16 20:46:51 (UTC+0)
joshuaspence
changed the title of this paste from untitled to
HipChatClient
.
joshuaspence
updated the paste's language from
autodetect
to
autodetect
.
joshuaspence
mentioned this in
T7286: Re-evaluate whether passing GET data in the body is a good idea
.
Feb 16 2015, 8:59 PM
2015-02-16 20:59:49 (UTC+0)
Log In to Comment