PHP code example of fridge / api
1. Go to this page and download the library: Download fridge/api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fridge / api example snippets
$client = new \FridgeApi\Client("sk_xxxxxxxxxxx", "xxxxxxxxxxxx");
$pages = $client->get('content', array(
'type' => 'pages'
));
foreach ($pages as $page) {
$page->title = "New Page Title";
// Save new title
$client->put("content/{$page->id}", $page->commit());
}