Closed annando closed 1 year ago
Hello @annando ! I'm sorry you're having this issue. The NPF JSON here is valid, and I can confirm it works when creating posts for my test account using my own API consumer. The issue must be with that library you're using -- my hunch would be that it's encoding something incorrectly? I'm not sure, but I'd recommend trying an API client like Postman or cURL to test these requests, and see if you get the same issue.
Yeah, I can confirm that it is caused by my used library. I now experimented with Guzzle and I was able to post. Thanks for the hint!
I'm trying to post to
blog/(page)/posts
. It seem to work - but only if I do not includeformatting
orindent_level
. So then I tried the examples in the documentation.I transmitted this to the endpoint:
There I got this as return value:
It works when I transmit this:
Then get this in return:
Same goes with the
indent_level
.I send this:
I receive this:
I'm using an ancient PHP library to post this that derived from this it seems: https://github.com/fooyeahcode/tumblroauth
Since the posting in NPF does work when I omit
formatting
orindent_level
this shouldn't matter, shouldn't it?I guess I'm missing something here, but I should have studied the API documentation deep enough, I think.