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

getMedias(long userId, int pageCount, PageInfo pageCursor) returns 302 response #148

Open
nbraun1 opened this issue Jun 3, 2020 · 0 comments

Comments

@nbraun1
Copy link

nbraun1 commented Jun 3, 2020

Hi,

If I want to get the next page of medias for an specified user, I'll run into an 302 response. I'm not really sure, where I can find the maxId to request the next page, so I took the id of the first media object and passed it to the request. Here is an small code sample:

instagram.getMedias(account.getId(), 1, new PageInfo(true, String.valueOf(medias.getNodes().get(0).getId())));

Note, that I sent this request without an login! The problem is, if I tried to send a login request, I got a 400 response. However, my credentials are correct! Apart from that, I saw that there is an similar issue (see #145).

Now, my question to you, is the 302 response for a paginated media request caused in my code or in your API?

Thank you in advance for your help.
Best regards.

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

1 participant