Fridge API client for PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
lib/FridgeApi
.gitignore
README.md
composer.json
composer.lock

README.md

Fridge API

Install

Composer.json

{
    "require": {
      "fridge/api": "@stable"
    }
}

Usage

$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());
}

See the Fridge Documentation for more examples.