File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/Osiset/BasicShopifyAPI/Clients Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11# CHANGELOG
22
3+ # 9.1.2
4+
5+ + Oauth error handling (#77 ).
6+
37# 9.1.1
48
59+ Implemented ` Iterable ` and ` Countable ` on ` ResponseAccess `
Original file line number Diff line number Diff line change 33namespace Osiset \BasicShopifyAPI \Clients ;
44
55use Exception ;
6- use Osiset \BasicShopifyAPI \ResponseAccess ;
76use Psr \Http \Message \ResponseInterface ;
7+ use GuzzleHttp \Exception \ClientException ;
88use GuzzleHttp \Exception \RequestException ;
9+ use Osiset \BasicShopifyAPI \ResponseAccess ;
910use Osiset \BasicShopifyAPI \Clients \AbstractClient ;
1011use Osiset \BasicShopifyAPI \Contracts \RestRequester ;
1112
@@ -61,7 +62,7 @@ public function requestAccess(string $code): ResponseAccess
6162 $ url ,
6263 $ data
6364 );
64- } catch (\ GuzzleHttp \ Exception \ ClientException $ e ) {
65+ } catch (ClientException $ e ) {
6566 $ body = json_decode ($ e ->getResponse ()->getBody ()->getContents ());
6667 throw new Exception ($ body ->error_description );
6768 }
You can’t perform that action at this time.
0 commit comments