Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

trying to add event feed #29

Open
Octolus opened this issue Sep 22, 2016 · 1 comment
Open

trying to add event feed #29

Octolus opened this issue Sep 22, 2016 · 1 comment

Comments

@Octolus
Copy link

Octolus commented Sep 22, 2016

app.get('/PSN/feed/:id', function(req, res){ gumerPSN.getFeed(req.params.id, function(error, eventFeed) { if (!error) { res.send(eventFeed) } else { if (eventFeed.error.code == 2105356) { // User not found code res.send({ error: true, message: "PSN ID not found" }) } else { res.send({ error: true, message: "Something went terribly wrong, submit an issue on GitHub please!", response: eventFeed }) } } }) })

exports.getFeed = function (psnid, callback) { if (accessToken.length > 1) { debug('Asking profile events for: ' + psnid); psnGETRequest(psnURL.eventFeed.replace("{{id}}", psnid),callback); } else { debug('Asking for new token'); getAccessToken('',function() { psnGETRequest(psnURL.eventFeed.replace("{{id}}", psnid),callback); }) } }

,eventFeed: 'https://activity.api.np.km.playstation.net/activity/api/v1/users/{{id}}/feed/0?includeComments=true&includeTaggedItems=true&filters=PURCHASED&filters=RATED&filters=VIDEO_UPLOAD&filters=SCREENSHOT_UPLOAD&filters=PLAYED_GAME&filters=WATCHED_VIDEO&filters=TROPHY&filters=BROADCASTING&filters=LIKED&filters=PROFILE_PIC&filters=FRIENDED&filters=CONTENT_SHARE&filters=IN_GAME_POST&filters=RENTED&filters=SUBSCRIBED&filters=FIRST_PLAYED_GAME&filters=IN_APP_POST&filters=APP_WATCHED_VIDEO&filters=SHARE_PLAYED_GAME&filters=VIDEO_UPLOAD_VERIFIED&filters=SCREENSHOT_UPLOAD_VERIFIED&filters=SHARED_EVENT&filters=JOIN_EVENT&filters=TROPHY_UPLOAD&filters=FOLLOWING&filters=RESHARE'

this never returns any data, any idea why?

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

No branches or pull requests

1 participant