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 live online training, plus books, videos, and digital content from nearly 200 publishers.