Comments (7)
Thanks for creating this issue 👌
should be in JSON, if Content-Type is set to application/json
Can you clarify what you mean here? The endpoint should always return application/x-www-form-urlencoded
as defined by the spec, and in my testing the response Content-Type
is never application/json
.
We'll merge an update to include the oauth_callback_confirmed
response property, and indicate the response content type is application/x-www-form-urlencoded
. Please let me know if that'll cover the items in this issue.
from docs.
Oh! Interesting!
I must've missed that in my fairly loose implementation of oauth 1.0a; I can see that I'm meant to send data via x-www-form-urlencoded
(or query params), but if I send with Accept: application/json
or Content-Type: application/json
then the server doesn't reject the request, instead it just returns back application/x-www-form-urlencoded
responses.
I'd been sending requests all with Accept: application/json
, and was confused when I got back a different content-type; Perhaps returning a 406 Not Acceptable
error if the Accept
is sent and it is not application/x-www-form-urlencoded
would be appropriate?
JSON APIs have spoiled me 😆
from docs.
Thanks for clarifying! We just merged an update to the docs: ef3f1b1, but I'll keep this issue open until we also implement the 406 response for the applicable routes 👌
from docs.
from docs.
I'm a little worried that the 406 response is going to be a breaking change
for clients that were unknowingly setting the Accept header previously
Agreed! Whenever we want to make this sort of change we log first to verify we won't break anything for anyone. If there are any hits we'll probably just drop the change, but we can also consider only enabling it for apps that are created going forward.
from docs.
Over the past few weeks we've had more than a handful of requests made to the /oauth/...
endpoints with invalid accept headers. In the spirit of not breaking existing implementations we will not be introducing further changes at this time.
from docs.
from docs.
Related Issues (20)
- How do I work with the versions of the site that still use window.Tumblr (uppercase)? HOT 11
- Private redirect URLs for OAuth2 fail validation HOT 3
- Add avatar image links to the blog.theme object in NPF data HOT 2
- `formatting` and `indent_level` don't seem to work like documented HOT 2
- Localhost redirect URI ignoring port HOT 3
- Endpoints to block (indivual & bulk) & follow blogs do not accept application/json as a payload - Confirmed user error HOT 15
- Reply/Note endpoint not documented? HOT 1
- Avatar URL not returned in /notes endpoint HOT 6
- Unique user identifier HOT 2
- Unable to retrieve information from certain users HOT 4
- Community Labels via API HOT 4
- Audio posts appear wonky on custom themes HOT 2
- API console seems to not work HOT 7
- Can't create access tokens HOT 6
- NPF: `tumblrmart_accessories` only returns the `blue-checkmark` and not other badges HOT 2
- NPF `indent_level` – a no longer supported feature? HOT 3
- V2 API: Blog info call does not return user following information correctly HOT 1
- Tumblr SSO does not work when "Continue with Google" is used HOT 5
- api doc error
- Document Polls API HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.