We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Instead of sending text/html it should be application/json.
text/html
application/json
As well a callback function would be good. See https://secure.wikimedia.org/wikipedia/en/wiki/JSONP for more information.
Example
Without callback
Req ?apikey=secret Res {"code":4,"message":"no or wrong API Key","data":null}
?apikey=secret
{"code":4,"message":"no or wrong API Key","data":null}
With callback
Req ?apikey=secret&callback=test Res test({"code":4,"message":"no or wrong API Key","data":null})
?apikey=secret&callback=test
test({"code":4,"message":"no or wrong API Key","data":null})
The text was updated successfully, but these errors were encountered:
made this with ?jsonp= instead of callback
Sorry, something went wrong.
No branches or pull requests
Instead of sending
text/html
it should beapplication/json
.As well a callback function would be good. See https://secure.wikimedia.org/wikipedia/en/wiki/JSONP for more information.
Example
Without callback
With callback
The text was updated successfully, but these errors were encountered: