Skip to content

Commit 04e5c54

Browse files
committed
Fix issue
1 parent 4bd9d23 commit 04e5c54

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/codebird.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1943,7 +1943,7 @@ protected function _callApi($httpmethod, $method, $method_template, $params = []
19431943
}
19441944
// use separate API access for streaming API
19451945
if ($this->_detectStreaming($method) !== false) {
1946-
return $this->_callApiStreaming($httpmethod, $method, $params, $app_only_auth);
1946+
return $this->_callApiStreaming($httpmethod, $method, $method_template, $params, $app_only_auth);
19471947
}
19481948

19491949
if ($this->_use_curl) {
@@ -2246,14 +2246,15 @@ protected function _callApiPreparations(
22462246
*
22472247
* @param string $httpmethod The HTTP method to use for making the request
22482248
* @param string $method The API method to call
2249+
* @param string $method_template The API method template to call
22492250
* @param array optional $params The parameters to send along
22502251
* @param bool optional $app_only_auth Whether to use app-only bearer authentication
22512252
*
22522253
* @return void
22532254
*/
22542255

22552256
protected function _callApiStreaming(
2256-
$httpmethod, $method, $params = [], $app_only_auth = false
2257+
$httpmethod, $method, $method_template, $params = [], $app_only_auth = false
22572258
)
22582259
{
22592260
if ($this->_streaming_callback === null) {

0 commit comments

Comments
 (0)