Hi,
I’m playing with the API and have read the documentation to learn how it works.
I did my tests on the starterkit.
I don’t understand how I can fetch the content of a field …
for instance, if I run this request to get the “about” page data:
$response_about = Remote::get('http://localhost:1515/rest/pages/about', [
'headers' => [
'Authorization: Basic ' . base64_encode($email . ':' . $password)
]
]);
and var_dump($response_about->content()) I get a String which looks like:
string(1931) "{"code":"200","data":{"content":{"text":"Far far away, behind the word mountains, far from the countries Voka ...
What can I do with this String?
How can I access to the “text” field content only for instance?
I probably missed something …