ReviewOS

also looking at this

meemalabs/meema-client-php

WIP: Upload Endpoint

#38
Merged glennmichael123 wants to merge upload-endpoint into main
6 files +172 -94

Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.

src/Models/Media.phpmodifiedformatting only+2-2
Changes to src/Models/Media.php
@@ -2,9 +2,9 @@
22
33namespace Meema\MeemaApi\Models;
44
5use GuzzleHttp\Client as GuzzleClient;
56use GuzzleHttp\Psr7;
67use GuzzleHttp\Psr7\Request;
7use GuzzleHttp\Client as GuzzleClient;
88use Meema\MeemaApi\Client;
99use Meema\MeemaApi\Exceptions\InvalidFormatException;
1010use Meema\MeemaApi\Response\Response;
@@ -215,7 +215,7 @@ class Media
215215 */
216216 protected function uploadToS3($signedUrl, $headers, $fileName, $stream)
217217 {
218 $client = new GuzzleClient();
218 $client = new GuzzleClient();
219219 $request = new Request(
220220 'PUT',
221221 $signedUrl['url'],