Closed slippyex closed 6 years ago
I digged into the above again and debugged it a bit ... it seems that the way to compose an url is pretty restrictive ... However, wanted to share my solution with you
await T.post('friendships/create', {user_id: userId, follow: true });
works perfectly fine now ... the internal query builder create an invalid url for my cases above. So take care that you don't put a trailing "/" to those urls because they will be turned into something like
https://api.twitter.com/1.1/friendships/create/.json?user_id={{THE_USER_ID_TO_FOLLOW}}&follow=true
That being said, I will close the issue ...
Guys, when I want to either create a friendship or a favorite on a tweet (which I retweeted), I get a 404 "Error: Sorry, that page does not exist"
Do I need to change the format of my code line? Did Twitter API change internally?
or
whereas the following line works perfectly fine for me