O'Reilly logo

Sams Teach Yourself the Twitter API in 24 Hours by Chia Hwu, Jon Wu, Ben Ho, Christopher Peri

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required