Can you give me an example. Thanks
every feed take session an extra arguments,
// import Client as Client.V1 and make session (how to in README)
var userId = 12345....;
var feed = new Client.Feed.UserMediaFeed(session, userId);
// every feed should have method .get() which usually take no arguments
feed.get()
.then(function(data){
console.log(data, "you just got first page");
return feed.get()
})
.then(function(data) {
console.log(data, "you just got second page")
})
further more, feed also in many cases implements setMaxId, getMaxId, isMoreAvailable
methods which can help you to set the cursor. And also few feeds have all method which can return for example all messages in inbox or all followings etc.
just info, i tried to use new Client.Feed.UserMediaFeed(session, userId);
but error so this is the correct way
var userId = account.id;
var feed = new Client.Feed.UserMedia(session, userId);
feed.get().then(function(data) {
console.log(data)
})
Most helpful comment
every feed take session an extra arguments,
further more, feed also in many cases implements
setMaxId, getMaxId, isMoreAvailablemethods which can help you to set the cursor. And also few feeds have
allmethod which can return for example all messages in inbox or all followings etc.