This API call can be used to read the number of all entries on a commitment page. The following GET parameters are supported:
Parameter | Default | Description |
page_size | 20 | Number ob people that should be pulled |
page_number | 0 | Page, witch should be pulled |
media_content | 0 | 1: Only posts with foto will be pulled |
has_message | 0 | 1: Only post with a statement will be pulled |
counter_only | 0 | 1: Only the count of posts will be poulled, not the posts themselves |
use_cache | false | true: for performance reasons this parameter should be specified when embedding in pages. Cache duration of the return is 15 minutes |
An example request:
HTTP-GET: <cambuildr-url>/api/v1/pages/{page_id}/commitments?counter_only=1
The ID of the commitment page can be easily read out in the administration: