@@ -640,6 +640,7 @@ public function logout()
640
640
* @param bool $use_curl Request uses cURL or not
641
641
*
642
642
* @return void
643
+ * @throws \Exception
643
644
*/
644
645
public function setUseCurl ($ use_curl )
645
646
{
@@ -718,6 +719,7 @@ public function setReturnFormat($return_format)
718
719
* @param int optional $type Proxy type, defaults to HTTP
719
720
*
720
721
* @return void
722
+ * @throws \Exception
721
723
*/
722
724
public function setProxy ($ host , $ port , $ type = CURLPROXY_HTTP )
723
725
{
@@ -757,6 +759,7 @@ public function setProxyAuthentication($authentication)
757
759
* @param callable $callback The streaming callback
758
760
*
759
761
* @return void
762
+ * @throws \Exception
760
763
*/
761
764
public function setStreamingCallback ($ callback )
762
765
{
@@ -960,6 +963,7 @@ protected function _mapFnRestoreParamUnderscores($method)
960
963
* @param array byref $apiparams The parameters to send along
961
964
*
962
965
* @return string[] (string method, string method_template)
966
+ * @throws \Exception
963
967
*/
964
968
protected function _mapFnInlineParams ($ method , &$ apiparams )
965
969
{
@@ -1002,6 +1006,7 @@ protected function _mapFnInlineParams($method, &$apiparams)
1002
1006
* @param optional string $type 'authenticate' or 'authorize', to avoid duplicate code
1003
1007
*
1004
1008
* @return string The OAuth authenticate/authorize URL
1009
+ * @throws \Exception
1005
1010
*/
1006
1011
public function oauth_authenticate ($ force_login = NULL , $ screen_name = NULL , $ type = 'authenticate ' )
1007
1012
{
@@ -1198,6 +1203,7 @@ private function _getProxyData($name)
1198
1203
* Gets the OAuth bearer token, using cURL
1199
1204
*
1200
1205
* @return string The OAuth bearer token
1206
+ * @throws \Exception
1201
1207
*/
1202
1208
1203
1209
protected function _oauth2TokenCurl ()
@@ -1237,6 +1243,7 @@ protected function _oauth2TokenCurl()
1237
1243
* Gets the OAuth bearer token, without cURL
1238
1244
*
1239
1245
* @return string The OAuth bearer token
1246
+ * @throws \Exception
1240
1247
*/
1241
1248
1242
1249
protected function _oauth2TokenNoCurl ()
@@ -1370,6 +1377,7 @@ protected function _getRateLimitInfo($headers)
1370
1377
* @param int $validation_result The curl error number
1371
1378
*
1372
1379
* @return void
1380
+ * @throws \Exception
1373
1381
*/
1374
1382
protected function _validateSslCertificate ($ validation_result )
1375
1383
{
@@ -1435,6 +1443,7 @@ protected function _url($data)
1435
1443
* @param string $data The data to calculate the hash from
1436
1444
*
1437
1445
* @return string The hash
1446
+ * @throws \Exception
1438
1447
*/
1439
1448
protected function _sha1 ($ data )
1440
1449
{
@@ -1463,6 +1472,7 @@ protected function _sha1($data)
1463
1472
* @param int optional $length The length of the string to generate
1464
1473
*
1465
1474
* @return string The random string
1475
+ * @throws \Exception
1466
1476
*/
1467
1477
protected function _nonce ($ length = 8 )
1468
1478
{
@@ -1508,6 +1518,7 @@ protected function _getSignature($httpmethod, $method, $base_params)
1508
1518
* @param array optional $params The API call parameters, associative
1509
1519
*
1510
1520
* @return string Authorization HTTP header
1521
+ * @throws \Exception
1511
1522
*/
1512
1523
protected function _sign ($ httpmethod , $ method , $ params = [])
1513
1524
{
@@ -1691,6 +1702,7 @@ protected function _detectMultipart($method)
1691
1702
* @param array $params The parameters to send along
1692
1703
*
1693
1704
* @return string request
1705
+ * @throws \Exception
1694
1706
*/
1695
1707
protected function _getMultipartRequestFromParams ($ method_template , $ border , $ params )
1696
1708
{
@@ -1805,6 +1817,7 @@ protected function _buildBinaryBody($input)
1805
1817
* @param string $url The URL to download from
1806
1818
*
1807
1819
* @return mixed The file contents or FALSE
1820
+ * @throws \Exception
1808
1821
*/
1809
1822
protected function _fetchRemoteFile ($ url )
1810
1823
{
@@ -1955,6 +1968,7 @@ protected function _getEndpoint($method, $method_template)
1955
1968
* @param bool optional $app_only_auth Whether to use app-only bearer authentication
1956
1969
*
1957
1970
* @return string The API reply, encoded in the set return_format
1971
+ * @throws \Exception
1958
1972
*/
1959
1973
1960
1974
protected function _callApi ($ httpmethod , $ method , $ method_template , $ params = [], $ multipart = false , $ app_only_auth = false )
@@ -1987,6 +2001,7 @@ protected function _callApi($httpmethod, $method, $method_template, $params = []
1987
2001
* @param bool optional $app_only_auth Whether to use app-only bearer authentication
1988
2002
*
1989
2003
* @return string The API reply, encoded in the set return_format
2004
+ * @throws \Exception
1990
2005
*/
1991
2006
1992
2007
protected function _callApiCurl (
@@ -2047,6 +2062,7 @@ protected function _callApiCurl(
2047
2062
* @param bool optional $app_only_auth Whether to use app-only bearer authentication
2048
2063
*
2049
2064
* @return string The API reply, encoded in the set return_format
2065
+ * @throws \Exception
2050
2066
*/
2051
2067
2052
2068
protected function _callApiNoCurl (
@@ -2221,6 +2237,7 @@ protected function _appendHttpStatusAndRate($reply, $httpstatus, $rate)
2221
2237
* Get Bearer authorization string
2222
2238
*
2223
2239
* @return string authorization
2240
+ * @throws \Exception
2224
2241
*/
2225
2242
protected function _getBearerAuthorization ()
2226
2243
{
@@ -2282,6 +2299,7 @@ protected function _callApiPreparations(
2282
2299
* @param bool optional $app_only_auth Whether to use app-only bearer authentication
2283
2300
*
2284
2301
* @return void
2302
+ * @throws \Exception
2285
2303
*/
2286
2304
2287
2305
protected function _callApiStreaming (
0 commit comments