@@ -80,14 +80,14 @@ public function getObject()
80
80
public function create ($ object )
81
81
{
82
82
$ 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 );
84
84
return $ this ->processRequest ($ body );
85
85
}
86
86
87
87
88
88
public function getList ($ parameters = array ())
89
89
{
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 );
91
91
92
92
if ($ status === 200 ) {
93
93
$ body = json_decode ($ body );
@@ -119,7 +119,7 @@ public function getList($parameters = array ())
119
119
public function read ($ id = null )
120
120
{
121
121
$ 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 );
123
123
return $ this ->processRequest ($ body );
124
124
}
125
125
@@ -134,7 +134,7 @@ public function read($id = null)
134
134
public function delete ($ id )
135
135
{
136
136
$ 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 );
138
138
139
139
if ($ status === Common \HttpClient::HTTP_NO_CONTENT ) {
140
140
return true ;
@@ -145,13 +145,12 @@ public function delete($id)
145
145
146
146
/**
147
147
* @param $body
148
- * @param null $header
149
148
*
150
149
* @return $this
151
150
* @throws \MessageBird\Exceptions\RequestException
152
151
* @throws \MessageBird\Exceptions\ServerException
153
152
*/
154
- public function processRequest ($ body, $ header = null )
153
+ public function processRequest ($ body )
155
154
{
156
155
$ body = @json_decode ($ body );
157
156
0 commit comments