Because a number of endpoints were changed recently, a lot of noblox.js functions were updated. This includes getWall(). The GetWall now returns an object formatted like:
// sortOrder can only be 'Asc' or 'Desc' & limit can only be 10, 25, 50, or 100
noblox.getWall(GroupID, sortOrder, limit, cursor)
I’m in the process of turning functions like these into readable streams to make it easier. So in the end, what you should be doing is something along the lines of:
noblox.getWall(2778070, 1).then(function(res){
const posts = res.data
for(var i = 0; i < posts.length; i++){
var msg = posts[i]
console.log(msg.poster.username + " said: " + msg.body)
}
})
The documentation on the wiki pages for noblox.js is incredibly outdated. I’m currently in the process of writing documentation on the gh-pages branch which is shown on https://noblox.js.org. I eventually plan on fading out the wiki as a whole and shifting all documentation here. In the meanwhile you may need to look at method’s arguments in their source files near the top. Sorry for the inconvenience.
Hi, sorry to bother you but I was just curious if deleteWallPost also got updated? Whenever I comment this code out, the program works but otherwise it fails: