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 1
1
# CHANGELOG
2
2
3
+ # 9.1.2
4
+
5
+ + Oauth error handling (#77 ).
6
+
3
7
# 9.1.1
4
8
5
9
+ Implemented ` Iterable ` and ` Countable ` on ` ResponseAccess `
Original file line number Diff line number Diff line change 3
3
namespace Osiset \BasicShopifyAPI \Clients ;
4
4
5
5
use Exception ;
6
- use Osiset \BasicShopifyAPI \ResponseAccess ;
7
6
use Psr \Http \Message \ResponseInterface ;
7
+ use GuzzleHttp \Exception \ClientException ;
8
8
use GuzzleHttp \Exception \RequestException ;
9
+ use Osiset \BasicShopifyAPI \ResponseAccess ;
9
10
use Osiset \BasicShopifyAPI \Clients \AbstractClient ;
10
11
use Osiset \BasicShopifyAPI \Contracts \RestRequester ;
11
12
@@ -61,7 +62,7 @@ public function requestAccess(string $code): ResponseAccess
61
62
$ url ,
62
63
$ data
63
64
);
64
- } catch (\ GuzzleHttp \ Exception \ ClientException $ e ) {
65
+ } catch (ClientException $ e ) {
65
66
$ body = json_decode ($ e ->getResponse ()->getBody ()->getContents ());
66
67
throw new Exception ($ body ->error_description );
67
68
}
You can’t perform that action at this time.
0 commit comments