Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from Jul 1, 2012

Conversation

matteoagosti
Copy link

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.

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 added a commit that referenced this pull request Jul 1, 2012
Minor bugfix in getAccessToken and added 2 new endpoints: addcomment, deletecomment
@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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants