Api for V2
Posted: Sat Feb 17, 2018 7:50 pm
hi, i would like to update my old version of bludit but in the last version i do something like this for the api :
with this, i can see all my pages in onepage website . But now with the new api, i can't found how i can't do this. Why did you delete the information on the api plugins ...
please, can you help me ?
Of course i check the https://docs.bludit.com/en/api/introduc ... stallation but i can't select the content from my page. that's what he say .
i have a second request in the same time ( api too),
i try to see the page only if the title of page called : "bienvenue". and i would like to see the content only from this page.
thx for help
Code: Select all
<?php
$url = 'https://www.mywebsite.fr/api/show/all/pages/b547d5bed80a3435ba9fac89bcb34ba6';
$result = file_get_contents($url);
$data = json_decode($result, true);
foreach($data as $page) {
if (strstr($page['key'],'v2-')){
echo "<section>";
echo $page['content'];
echo "</section>";
}
}
?>
please, can you help me ?
Of course i check the https://docs.bludit.com/en/api/introduc ... stallation but i can't select the content from my page. that's what he say .
i have a second request in the same time ( api too),
i try to see the page only if the title of page called : "bienvenue". and i would like to see the content only from this page.
thx for help