@@ -80,14 +80,14 @@ public function getObject()
8080 public function create ($ object )
8181 {
8282 $ body = json_encode ($ object );
83- list ($ status , $ headers , $ body ) = $ this ->HttpClient ->performHttpRequest (Common \HttpClient::REQUEST_POST , $ this ->resourceName , $ query = null , $ body );
83+ list (, , $ body ) = $ this ->HttpClient ->performHttpRequest (Common \HttpClient::REQUEST_POST , $ this ->resourceName , $ query = null , $ body );
8484 return $ this ->processRequest ($ body );
8585 }
8686
8787
8888 public function getList ($ parameters = array ())
8989 {
90- list ($ status , $ headers , $ body ) = $ this ->HttpClient ->performHttpRequest (Common \HttpClient::REQUEST_GET , $ this ->resourceName , $ parameters );
90+ list ($ status , , $ body ) = $ this ->HttpClient ->performHttpRequest (Common \HttpClient::REQUEST_GET , $ this ->resourceName , $ parameters );
9191
9292 if ($ status === 200 ) {
9393 $ body = json_decode ($ body );
@@ -119,7 +119,7 @@ public function getList($parameters = array ())
119119 public function read ($ id = null )
120120 {
121121 $ ResourceName = $ this ->resourceName . (($ id ) ? '/ ' . $ id : null );
122- list ($ status , $ headers , $ body ) = $ this ->HttpClient ->performHttpRequest (Common \HttpClient::REQUEST_GET , $ ResourceName );
122+ list (, , $ body ) = $ this ->HttpClient ->performHttpRequest (Common \HttpClient::REQUEST_GET , $ ResourceName );
123123 return $ this ->processRequest ($ body );
124124 }
125125
@@ -134,7 +134,7 @@ public function read($id = null)
134134 public function delete ($ id )
135135 {
136136 $ ResourceName = $ this ->resourceName . '/ ' . $ id ;
137- list ($ status , $ headers , $ body ) = $ this ->HttpClient ->performHttpRequest (Common \HttpClient::REQUEST_DELETE , $ ResourceName );
137+ list ($ status , , $ body ) = $ this ->HttpClient ->performHttpRequest (Common \HttpClient::REQUEST_DELETE , $ ResourceName );
138138
139139 if ($ status === Common \HttpClient::HTTP_NO_CONTENT ) {
140140 return true ;
@@ -145,13 +145,12 @@ public function delete($id)
145145
146146 /**
147147 * @param $body
148- * @param null $header
149148 *
150149 * @return $this
151150 * @throws \MessageBird\Exceptions\RequestException
152151 * @throws \MessageBird\Exceptions\ServerException
153152 */
154- public function processRequest ($ body, $ header = null )
153+ public function processRequest ($ body )
155154 {
156155 $ body = @json_decode ($ body );
157156
0 commit comments