Skip to content

Commit

Permalink
Headless
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmrtn committed Jan 12, 2021
1 parent 3eade3f commit b095887
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,16 @@ For example, you could do this to have a 'load more' button:
{% endjs %}
```

### Headless mode

If you're using Craft headless, you can access the instagram feed via `/actions/craftagram/default/api`, which will return the raw JSON data from instagram. You can pass the following parameters:

| Field Name | Description |
| --- | --- |
| limit | The default limit from instagram is 25 |
| siteId | The current site's ID. If you only have one site on your install you can leave this blank, otherwise pass the `siteId` for the site you have added the authorisation to. You can hard-code the site ID if you have only set up authorisation on one of your multi-site installs, otherwise pass the current `siteId` dynamically |
| url | Pass the `after` or `before` parameters from `data->paging->cursors` to get the next or the previous set of results |

### Profile Information

> :warning: :warning: :warning:
Expand Down

0 comments on commit b095887

Please sign in to comment.