You need to sign in to do that
Don't have an account?
ugo
Page parameter in User Messages does not seem to work
I am sending a GET request to /chatter/users/userId/messages. According to the documentation, one of the request parameters is "page" which "specifies the number of the page you want returned".
I tried to use both 0 and 1 for "page" and I always get the error response:
GET Bad Request
INVALID_PAGING_OPTION Page value malformed: 0 [or 1]
What are the valid values for the "page" parameter?
Thank you,
Ugo
Sorry, the documentation is incorrect and will be fixed. When you GET /chatter/users/userId/messages, the nextPageUrl in the response payload will tell you what to use for the page parameter. It's an opaque paging token that you should use as provided. The other request parameter, pageSize, is an Integer as described in the API documentation.
INITIAL REQUEST:
https://na6.salesforce.com/services/data/v29.0/chatter/feeds/record/0F9800000000266CAA/feed-items
EXCERPT FROM RESPONSE:
"nextPageUrl" : "/services/data/v29.0/chatter/feeds/record/0F9800000000266CAA/feed-items?page=2014-02-06T04%3A52%3A11Z%2C0D580000013UegyCAC"
REQUEST FOR NEXT PAGE RETURNS 400 ERROR:
https://na6.salesforce.com/services/data/v29.0/chatter/feeds/record/0F9800000000266CAA/feed-items?page=2014-02-06T04%3A52%3A11Z%2C0D580000013UegyCAC