Has been working fine for the lat 2-3days since I started working with it. I am able to login to the website and I even did a password change and can still login to th site but not the api.
Tell me more, is this a custom oauth app youāre developing? What error do you see? Whatās your username?
Iām making a ton of changes right now because itās the weekend, so itās entirely possible I borked something!
Its a custom app but iām only on like a week of dev so based on what I read I was just using the cookie. Iām happy to swtich to the oauth if thatās preferable?
username is: timcadieux
all I get when I do api calls is
ā{āunread_feed_story_hashesā: {}, āresultā: āokā, āauthenticatedā: false}ā
Hoppscotch returns
{
ācodeā: -1,
āerrorsā: {
āusernameā: [
āPlease enter a username.ā
]
},
āresultā: āokā,
āauthenticatedā: false
}
Nothingās broken on the server side - your API login is actually succeeding in the logs. Two issues:
1. In Hoppscotch, make sure youāre sending the login as application/x-www-form-urlencoded form data (not JSON). The āPlease enter a usernameā error means the POST body isnāt being parsed correctly.
2. After login, you need to store and send the session cookie (newsblur_sessionid) with every subsequent request. Thatās why youāre getting authenticated: false on other endpoints. With curl: curl -c cookies.txt -X POST -d āusername=ā¦&password=ā¦ā https://newsblur.com/api/login then curl -b cookies.txt https://newsblur.com/reader/feeds.
Hmm, sounds like I borked something on my side instead becuase that is how I had been working.
Iāll give Hoppscotch another go as Iām looking at it and i am using application/x-www-form-urlencoded
There was a trailing comma, arghā¦
Thanks!