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

Use JSON for tag and feedback requests. #4

Merged
merged 2 commits into from
Dec 7, 2015
Merged

Conversation

solongordon
Copy link
Contributor

I switched tag and feedback requests to use JSON rather than form data.
(The API supports both.) This simplifies request construction and makes
it easier to add more request parameters later.

This is a breaking change for the Tag function, but it should help
avoid more breaking changes in the future.

@solongordon
Copy link
Contributor Author

@@ -24,5 +28,6 @@ _testmain.go
*.exe
*.test
*.prof
*.swp

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*.sw[opn]

@adamberenzweig
Copy link

LGTM.

As discussed, given that this client is new and that Go doesn't have function overloading, seems better to break the Tag() API than introduce an awkwardly named replacement.

Solon Gordon added 2 commits December 7, 2015 15:08
I switched tag and feedback requests to use JSON rather than form data.
(The API supports both.) This simplifies request construction and makes
it easier to add more request parameters later.

This is a breaking change for the Tag function, but it should help
avoid more breaking changes in the future.
This allows specifying a non-default model for a tag request.
solongordon pushed a commit that referenced this pull request Dec 7, 2015
Use JSON for tag and feedback requests.
@solongordon solongordon merged commit 34e1c18 into master Dec 7, 2015
@solongordon solongordon deleted the solon-json-requests branch December 7, 2015 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants