skip to Main Content

magento 1.9 library guzzlehttp

I have a problem with Magento 1.9 when I attach the guzzlehttp library to a call: $this->client = new GuzzleHttpClient (); return Mage::log($this->client); I am getting: Warning: include(): Failed opening 'GuzzleHttpClient.php' for inclusion (include_path='...') in /../lib/Varien/Autoload.php on line 94. Any…

VIEW QUESTION

Telegram Bot Bad Gateway – Telegram API

I am trying to upload picture using Telegram Bot API using the following code if(file_exists($_FILES['fileToUpload']['tmp_name'])){ $new = fopen($_FILES['fileToUpload']['tmp_name'], "rb"); $contents = fread($new, $_FILES['fileToUpload']['size']); fclose($new); $client = new Client(); $response = $client->post("https://api.telegram.org/botMyApiKey/sendPhoto", [ 'body' => ['chat_id' => '11111111', 'photo' => $contents]…

VIEW QUESTION
Back To Top
Search