olivierbon / Placid

Placid is a Craft plugin which makes it easy to consume REST services in your twig templates
77 stars 5 forks source link

Repo header image
Placid Screenshot

Placid is a Craft plugin which makes it easy to use REST services in your twig templates, whether thats getting a twitter feed, showing off dribbble shots or getting the weather, Placid has you covered.

Features

Installing / Updating

Installing

Updating

Basic example

Assuming you had your request set up like in the example above. You just need to do this:

{% set timeline = craft.placid.request('timeline', options) %}

{# Get the http status code that was sent from Twitter #}
{{ timeline.status }}

{% for tweet in timeline.data %}
  {{ tweet.text }}
{% endfor %}

For full instructions on how to use, refer to the wiki