Skip to content

Minor bugfix in getAccessToken and added 2 new endpoints: addcomment, deletecomment #9

merged 4 commits into from Jul 1, 2012

2 participants


I was experiencing an "invalid_grant" error during getAccessToken that was not reported as it is embedded in a normal response using the format {error: 'message'}.

I also added 2 endpoints for adding and deleting comments. As the module is currently based on get request I had to refactor a little bit the invokeApi stack.

In order to check that everything works I included some test cases.

matteoagosti added some commits Jun 28, 2012
@matteoagosti matteoagosti Handling invalid_grant and invalid responses when requesting accessToken 1519a21
@matteoagosti matteoagosti Handling request method (POST/GET) 6fdbd0c
@matteoagosti matteoagosti Added new endpoints addComment and deleteComment 949c49c
@matteoagosti matteoagosti Added test for addComment and deleteComment
Actually, the deleteComment test is invoked by the addComment
(chaining). The test posts a comment to a checkin and immediately
removes it. Please note that in order to post a comment to a checkin
you first have to be a friend of the user the checkin belongs to.
@clintandrewhall clintandrewhall merged commit 57cbe8b into clintandrewhall:master Jul 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.