Skip to content

Instantly share code, notes, and snippets.

View nfrp's full-sized avatar

Nicolas Pastorino nfrp

View GitHub Profile
@bdunogier
bdunogier / ezpRestDemo.php
Created September 29, 2010 14:41
eZ Publish REST interface developer preview example
<?php
/**
* This file is a demonstration of the eZ PUblish REST API developer preview. It handles oAuth2
* authorization, and will return as-is the JSON content returned by the REST interface.
*
* It doesn't cover the whole thing, but almost, and should give you all you need to get started
* with it !
*
* It accepts a few URL parameters that just change which REST resource is used:
* - resource: the REST resource URI that should be queried: content/node/2,