fridge / api
Simple PHP wrapper for the Fridge API
0.5
2016-10-26 16:56 UTC
Requires
- guzzlehttp/guzzle: ~4.0
This package is not auto-updated.
Last update: 2024-12-18 14:18:03 UTC
README
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.