Prayers API

by Skyler Katz | Last edited: 11/29/2018

Display mode: list

Show

before_show, after_show

Here are the tags available to before_show in the prayer list:

Tag Description
__pagination__ The pagination links for all of the prayers
__totalpossible__ The total number of prayers for the site
__totalreturned__ The total number of prayers returned in the current request
__createprayerurl__ The url to the create a prayer form. This link can be embeded in an iframe, lightbox, or a popup window. The form uses Bootstrap 4 styling by default. You can override any styles by creating a CSS file at /_assets/css/prayer-cloud.css.
show

Here are the tags available to show in prayers list view:

Tag Description
__id__ id of the prayer. Unlike other modules, the prayer id is a string UUID
__name__ name of the person who submitted the prayer
__email__ email of the person who submitted the prayer
__phone__ phone number of the person who submitted the prayer
__prayer__ prayer of the person who submitted the prayer
__recieved__ formattable date that the prayer was submitted. Use __recieved format='j/m/Y'__. A complete list of tags is available.
__acknowledgmentcount__ number of times the prayer has been acknowledged
__acknowledgmenturl__ url to acknowledge a prayer. If you use the link directly, the response to hitting this url directly is JSON, but includes checks to ensure a user cannot acknowledge the same prayer more than once. It is recommended to interact with this link using javascript, so that the visitor does not leave the site. If you use javascript, be sure to implement some sort of cookie tracking to ensure the link is only pressed once. An example can be found here.
Parameters

howmany

Sets the maximum number of items to display

Example:

"howmany:3",

 

Display mode: detail

find_id

Select a prayer by ID.

Show

show

The same tags are available for display:detail as with display:list.