Hello @Friendica Support When I use the API /api/v1/accounts/verify_credentials with the wrong password, it returns a 401 error and as responseText a html page. According to this documentation https://git.friendi.ca/friendica/friendica/src/branch/develop/doc/api.md it should return a JSON as responseText. In earlier versions it returned a JSON. Will that be corrected in the future or should I handle the 401 error? In that case the documentation probably needs an update.
Roland Häder likes this.
Marco R.
Philipp Holzer
It depends on the used extension for the call.
/api/v1/accounts/verify_credentials.json
returns a JSON error,/api/v1/accounts/verify_credentials
doesn't.But it's like Twitter expects it as well.
Try
https://api.twitter.com/1.1/account/verify_credentials (empty page)
https://api.twitter.com/1.1/account/verify_credentials.json (JSON Error)
Roland Häder likes this.
Friendica Support reshared this.
Marco R.
•Friendica Support reshared this.
Marco R.
•like this
Philipp Holzer and Roland Häder like this.
Friendica Support reshared this.
Marco R.
•like this
Roland Häder and Philipp Holzer like this.
Friendica Support reshared this.