The original API (https://cdn.syndication.twimg.com/widgets/followbutton/info.json) was shutdown by Twitter recently, causing the function user_id() not being able to retrieve the user ID by the user's screen name, and ultimately making the program to crash.
This PR replaces the old API with a new one to make this program continue to work. It was tested locally and everything seemed working fine.
The original API (
https://cdn.syndication.twimg.com/widgets/followbutton/info.json
) was shutdown by Twitter recently, causing the functionuser_id()
not being able to retrieve the user ID by the user's screen name, and ultimately making the program to crash.This PR replaces the old API with a new one to make this program continue to work. It was tested locally and everything seemed working fine.
This should also fix #79.