@@ -43,7 +43,7 @@ public function __construct()
4343 $ this ->guzzle = new Client (['handler ' => $ this ->handler ]);
4444 }
4545
46- public function get ($ endpoint )
46+ public function get ($ endpoint, $ query = [] )
4747 {
4848 $ request = new Request ('GET ' ,$ this ->buildUri ($ endpoint ), $ this ->buildHeaders ());
4949
@@ -52,27 +52,27 @@ public function get($endpoint)
5252 return $ this ->handle ($ response );
5353 }
5454
55- public function post ($ endpoint , $ data )
55+ public function post ($ endpoint , $ data, $ query = [] )
5656 {
5757
5858 }
5959
60- public function put ($ endpoint , $ data )
60+ public function put ($ endpoint , $ data, $ query = [] )
6161 {
6262
6363 }
6464
65- public function patch ($ endpoint , $ data )
65+ public function patch ($ endpoint , $ data, $ query = [] )
6666 {
6767
6868 }
6969
70- public function delete ($ endpoint )
70+ public function delete ($ endpoint, $ query = [] )
7171 {
7272
7373 }
7474
75- protected function buildUri ($ endpoint , $ options = [])
75+ protected function buildUri ($ endpoint , $ options = [], $ query = [] )
7676 {
7777 return 'http://example.com/ ' . ltrim ($ endpoint , '/ ' ) . '.json? ' . http_build_query ($ options , '' , '& ' );
7878 }
0 commit comments