What You’ll Learn in This Hour:
• How to follow and unfollow a user with the Friendships methods
• Notification methods
• Block methods
• Account methods
The Friendships methods are what you would expect: the ability to create or destroy a friendship, which is also known as following and unfollowing a user. This is a core functionality and something that is expected to be supported by most Twitter applications. There are two ways to approach supporting the friendships. First, we can try to find out if we are already following the user, and based on that condition, offer a follow or unfollow button. Or, we can provide one button that assumes to follow, and if ...