You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Codeception uses this simple and lightweight definitions format which can be [easily learned and extended](http://codeception.com/docs/modules/REST#seeResponseMatchesJsonType).
225
225
226
-
### Taking Data From Responses
226
+
### Working with Responses
227
227
228
-
When you need to obtain a value from a response and use it in next requests you can use `grab*` methods. For instance, use `grabDataFromResponseByJsonPath` allows to query JSON for a value.
228
+
Responses are returned from `send*` methods:
229
229
230
230
{% highlight php %}
231
+
<?php
232
+
233
+
$users = $I->sendGet('/users');
234
+
235
+
// alternatively
236
+
237
+
$users = $I->grabResponse();
231
238
239
+
{% endhighlight %}
240
+
241
+
When you need to obtain a value from a response and use it in next requests you can use `grab*` methods. For instance, use `grabDataFromResponseByJsonPath` allows to query JSON for a value.
0 commit comments