8000 Fix wrong Exception · robholmes/codebird-php@0ab6d33 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ab6d33

Browse files
committed
Fix wrong Exception
1 parent d313d45 commit 0ab6d33

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

codebird.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -698,9 +698,6 @@ private function _getEndpoint($method)
698698

699699
private function _callApi($httpmethod, $method, $method_template, $params = array(), $multipart = false)
700700
{
701-
if (!isset($this->_oauth_token)) {
702-
throw new Exception('To make a signed API request, the OAuth token must be set.');
703-
}
704701
if (! function_exists('curl_init')) {
705702
throw new Exception('To make API requests, the PHP curl extension must be available.');
706703
}
@@ -730,7 +727,7 @@ private function _callApi($httpmethod, $method, $method_template, $params = arra
730727
'Expect:'
731728
));
732729
}
733-
$reply = curl_exec($ch);
730+
$reply = curl_exec($ch);die($reply);
734731
$httpstatus = curl_getinfo($ch, CURLINFO_HTTP_CODE);
735732
$reply = $this->_parseApiReply($method_template, $reply);
736733
if ($this->_return_format == CODEBIRD_RETURNFORMAT_OBJECT) {

0 commit comments

Comments
 (0)
0