Awesome Open Source
Awesome Open Source

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

  • Send PUSH, POST, PATCH, GET requests to an API
  • Define your own access tokens to send with requests
  • Integrates with the Dukt OAuth plugin
  • Send requests via AJAX
  • Easily retrieve information about each requests response
  • Modify requests before they are sent, within your template.

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



Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Php (285,994
Plugin (113,841
Templates (57,171
Rest (29,266
Request (28,798
Twig (3,363
Craftcms (2,660
Craft Plugin (412