Chapter 6. Logging In and Managing Your Account
In This Chapter
Manage a user's account from the API
Logging in with OAuth methods
Working examples of the API in PHP
This chapter profiles methods for logging in and managing your account. This includes
Account methods
OAuth methods
You can use account management methods to do things like change your profile picture, update personal information, view your API rate limit, and so on. The details on the OAuth methods can help you roll your own OAuth login system.
Account Methods
Account methods are used to modify or view data pertaining to a particular Twitter profile. Profile data includes things such as your name, location, bio, Web page link, profile background, and profile colors. It also includes methods that verify the provided account credentials, check the profiles remaining rate limit, and end the users Twitter session.
Here are the Twitter account methods:
account/verify_credentialsaccount/rate_limit_statusaccount/end_sessionaccount/update_delivery_deviceaccount/update_profileaccount/update_profile_colorsaccount/update_profile_imageaccount/update_profile_background_image
Verify a user's credentials
To verify a user's supplied Twitter credentials, authenticate and call the account/verify_credentials method.
Warning
This method presumes you are asking users for their Twitter credentials to carry out API calls on their behalf. This type of authentication is not necessary anymore, and Twitter recommends that you use OAuth to authenticate users. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access