Coder Social home page Coder Social logo

Comments (7)

buraksahin avatar buraksahin commented on June 7, 2024

Me too, I couldn't solve pagination. I need help. How will I get more than 20 image?

from jinstagram.

RafaelAlbani avatar RafaelAlbani commented on June 7, 2024

Hi @buraksahin, perhaps i have found a way to use pagination in this case. I was using an older version of the api, looking at the latest version, i found a method that allows you to pass some extra parameters to utilize pagination in the RecentMediaFeed resource, the method is right below:

getRecentMediaFeed(long userId, int count, String minId, String maxId, Date maxTimeStamp, Date minTimeStamp)

I Hope this help you

from jinstagram.

buraksahin avatar buraksahin commented on June 7, 2024

@RafaelAlbani Thanks for help, I will try it.

from jinstagram.

buraksahin avatar buraksahin commented on June 7, 2024

@RafaelAlbani

I solve my problem,

TagMediaFeed searchT = instagram.getRecentMediaTags("car", "minId", "maxId");

List listofmedia = searchT.getData();

// next step for pagination call searchT.getPagination() -> this code:
searchT = instagram.getTagMediaInfoNextPage(searchT.getPagination());
listofmedia = searchT.getData();

// For every next page do it again..

from jinstagram.

RafaelAlbani avatar RafaelAlbani commented on June 7, 2024

Cool, it is slightly different for this method, good to know :)

from jinstagram.

arinto avatar arinto commented on June 7, 2024

@RafaelAlbani : Can you close this issue since you manage to solve the problem :)

from jinstagram.

RafaelAlbani avatar RafaelAlbani commented on June 7, 2024

Of course :)

from jinstagram.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.