Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL #36

Closed
stappjno opened this issue Jan 12, 2021 · 1 comment
Closed

GraphQL #36

stappjno opened this issue Jan 12, 2021 · 1 comment
Labels
feature-request New feature or request

Comments

@stappjno
Copy link

We use CraftCMS just as data source for headless frontends. Is there a way to access the grabbed instagram data via GraphQL or any other kind of API after the plugin got them?

@jsmrtn jsmrtn added the feature-request New feature or request label Jan 12, 2021
@jsmrtn
Copy link
Owner

jsmrtn commented Jan 12, 2021

This is now available via /actions/craftagram/default/api.

It will return the raw JSON data from instagram. You can pass the following parameters:

URL Parameter 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

@jsmrtn jsmrtn closed this as completed Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants