We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6559894 commit 7ce68ceCopy full SHA for 7ce68ce
en/extending-modx/services/modrest.md
@@ -29,7 +29,7 @@ $url = 'http://site.ru/rest/products';
29
$params = array('limit' => 100);
30
/* @var modRest $client */
31
$client = $modx->getService('rest', 'rest.modRest');
32
-// $client->setOption('format','JSON'); // The format of the received data accepts json or xml (json by default) for conversion to an array
+// $client->setOption('format','json'); // The format of the received data accepts json or xml (json by default) for conversion to an array
33
$response = $client->get($url, $params);
34
$data = $response->process(); // Will return an array
35
```
0 commit comments