Hour 17. Friendships, Notification, Block, and Account Methods
What You’ll Learn in This Hour:
• How to follow and unfollow a user with the Friendships methods
• Notification methods
• Block methods
• Account methods
Friendships 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 ...
Get Sams Teach Yourself the Twitter API in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.