Module

EE 1
EE 2
Rest

Developer

Phil Sturgeon

3rd Party (Commercial)
Current Version: 1.5.3
Release Date: Mar 29, 2011

License Agreement

Buy Now!

$30
Qty:

Compatibility

Requirements

Tags

Integrate RESTful API's into your ExpressionEngine 2.0 website with this Rest module. You can list Tweets, search for Digg articles, show off Flickr photographs, search YouTube for videos and interact with any open RESTful API.

Introduction

Integrate RESTful API’s into your ExpressionEngine 2.0 website with this Rest module. You can list Tweets, search for Digg articles, show off Flickr photographs, search YouTube for videos and interact with any open RESTful API.

See it in action

Usage

You can create REST requests in the backend module and reference them with Template Syntax, then loop through the returned response. Everything sent back from the API is converted into a loopable ExpressionEngine array wether its XML, JSON, Serialized data, pure PHP, CSV, RSS and Atom feeds. It will even include XML attributes as well as node values so no data is lost.

{exp:rest name=“foo”}
{some_value}<br/>
{/exp:rest}

Rest module can do more than just grab information from predefined requests. You can create REST requests on the fly:

{exp:rest url=“http://example.com/” verb=“get” format=“json” param:foo=“bar”}
{some_value}<br/>
{/exp:rest}

format defaults to “xml”
verb/method defaults to “get”
params can be added even if you call a saved request, it will merge or override params saved in the CP.

To debug a request you can add debug=“yes” to the tag.

You could use this syntax with other Template Tags and create some very dynamic flexible sites.

Changelog

1.5.3
  • CSV fields wrapped with single quotes or no quotes will now work, not just those with double quotes.
  • Supports v2.1.3 changing lang.rest.php to rest_lang.php.
1.5.2
  • Fixed an issue with XML/RSS stripping CDATA.
1.5.1
  • Avoid strtotime on unix timestamps.
  • Hide errors if an invalid base is set, just returns an empty result.
  • Updated Curl library for improved compatibility.
1.5.0
  • Added base=”” tag so you can skip down a few levels. base=“comments,data” is useful for Facebook Graph.
  • Use format=”” to any tag that should be a human readable date, no matter the format that comes from the API.
1.4.0
  • Global Variables can now be passed to parameters. E.g: param:foo=”{bar}”
  • Added limit=”” and offset=”” parameters to help with restricting results.
  • Improved EngineHosting support, i.e no more basedir error messages.
1.3.0
  • Now supports RSS and Atom feeds.
  • Extra params can be added in the template tag to saved requests.
  • Added debug=“yes”.
  • Users running in safe mode (WHY?!) will no longer get PHP errors.

Rest Links

This entry was last updated March 29, 2011, 7:34 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

3 Reviews:

Moly Yim 01.01.12

54321

This add-on is a godsend if you need to interact with any type of RESTful API. It opens up an entire world of new possibilities of things you can do with ExpressionEngine. Totally worth the $30.

Dave Brookes 08.30.10

43211

Jason, If you want links, names and #tags in tweets turned into links use this: http://devot-ee.com/add-ons/tweetify I’m using it with this and it works very well. This add-on doesn’t make assumptions about what you’re making.

Would like more control over caching, then it would get my 5 stars.

Jason Turcotte 08.25.10

Jason Turcotte

21321

Purchased this add-on and while it does give you basic output, things like links embedded into Twitter timelines are not converted to links.

Also, linking to screen name is hindered because of a “bug” using tags twice, you really can’t link to user profiles either.

Save your $30 for now.