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

rather than a stream, how can you get, say, 20 of the most recent posts? #18

Open
faceyspacey opened this issue Sep 23, 2016 · 3 comments

Comments

@faceyspacey
Copy link

faceyspacey commented Sep 23, 2016

I imagine something like?

new InstagramPosts({
  username: 'steveaoki',
  limit: 20,
}).then((posts) => {
     posts.length === 20;
});

and it seems profiles load 12 posts now. So perhaps by specifying a page parameter instead to control how many request (I'm assuming) must be made.

@notslang
Copy link
Owner

nope - there's no limit or page parameter, but there is a .destroy method that you can use to stop it.

@topikuning
Copy link

hello, how to utilise the destroy method?

@majstors
Copy link

majstors commented Apr 6, 2017

Nice example of destroy, here on gist:
https://gist.github.com/Maarius/3a7179480f227daf51135b77635017ee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants