Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

olivierbon/Placid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

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

About

Placid is a Craft plugin which makes it easy to consume REST services in your twig templates

Resources

Stars

Watchers

Forks

Packages

No packages published