- Twitter Bootstrap homepage and documentation (http://twitter.github.com/bootstrap/): This is the best and most reliable resource. Always check here first!
- The Twitter Bootstrap GitHub project page (https://github.com/twitter/bootstrap/): Essential resources for the Bootstrap development community.
- The Bootstrap blog (http://blog.getbootstrap.com/): Stay abreast of official statements and updates from lead developers.
- Follow Twitter Bootstrap (@twbootstrap) on Twitter (https://twitter.com/twbootstrap/): An indispensable way to stay informed.
- The Bootstrap Google Group (http://groups.google.com/group/twitterbootstrap/): A great place to ask questions and request assistance.
- Stack overflow (http://stackoverflow.com/): A fantastic support community, with an extensive Twitter Bootstrap section: http://stackoverflow.com/questions/tagged/twitter-bootstrap.
- Targeted web searches: Want help customizing your color scheme? Try searching "Twitter Bootstrap custom color scheme". Want to integrate jQuery form validation? Try "Twitter Bootstrap jQuery form validation". And so on. You get the idea
Twitter Marketing
Bootstrap rescources
twitter_bootstrap-web_development
- Downloading and setting up (Must know), walks you through the basics—getting the CSS, images, and JavaScript, and creating a page template.
- Headings, links, and buttons (Must know), introduces you to Bootstrap's ready-made styles for clear typographic hierarchy and turning hyperlinks into visually appealing buttons.
- Conquering the layout (Must know), experiments with Bootstrap's fantastic twelve-column grid system, just to get familiar with it.
- Creating a standard sub-page (Must know), applies the Bootstrap grid system to lay out a standard sub-page with a wide main column and a narrower sidebar.
- Creating a portfolio page (Must know), assists you in laying out a full-page grid of linked images with captions, using Bootstrap's styles for thumbnails.
- Creating a products page (Must know), walks you through the steps involved in creating a products page. Bootstrap comes with effective styles for laying out a good, basic, visually appealing table. We'll use it to start a products page.
- Customizing the navbar (Must know), assists you in adding links to these pages in Bootstrap's main navigation bar.
- Making it responsive (Should know), connects jQuery and Bootstrap's JavaScript plugins to enable the navbar to adapt responsively to small devices and viewports.
- Adding drop-down lists (Should know), shows how to add drop-down lists to your navbar. With the JavaScript in place, it's quite simple.
- Using tabs for switching content (Should know), illustrates the use of tabs for switching content. Now that we're getting used to leveraging all of Bootstrap—markup, CSS, and JavaScript—we're ready to create dynamic tabs for switching between panes of content.Creating a homepage carousel (Should know), adds a final touch to your site. To finish our site, we'll add a beautiful image slideshow, using Bootstrap's excellent, fully responsive carousel.
- Optimizing and customizing (Should know), will show you how to optimize your site for better performance and how to add customizations. Out-of-the-box Bootstrap is great. But you'll want to customize it. We'll bring in some custom colors and font faces. And we'll optimize our files in the process.
- Uploading, testing, and launching (Must know), walks you through a basic process of uploading our site to the web. Then you'll leverage a couple of great online tools to test our site for both desktop and mobile devices.Appendix: Bootstrap resources, contains a list of resources to help you continue growing
- as a Bootstrap-equipped developer.
Signing up twitter .
Signing up takes just a few minutes at (http://twitter.com) and click the Get Started button.
The first screen you see looks like the one here. The key pieceshere are the name boxes. In the Full Name box, type your actual name (or your company name,if this is a corporate account).
The Username box is where you add your account name—the one everybody on Twitter will know you by (like The_Real_Shaq or Pistachio or timoreilly). For the username, try to find one with the fewest number of characters possible; that becomes important as soon as people want to refer to you or repost your comments and find that your username is taking up several of their 140 characters.
After you fill out the rest and click “Create my account,” Twitter walks you through another few steps to find your friends on the service and suggest peopleyou might want to follow. Following is described later in this chapter. Turn the page for quick tips on fleshing out your account so that other people find it appealing.
The first screen you see looks like the one here. The key pieceshere are the name boxes. In the Full Name box, type your actual name (or your company name,if this is a corporate account).
The Username box is where you add your account name—the one everybody on Twitter will know you by (like The_Real_Shaq or Pistachio or timoreilly). For the username, try to find one with the fewest number of characters possible; that becomes important as soon as people want to refer to you or repost your comments and find that your username is taking up several of their 140 characters.
After you fill out the rest and click “Create my account,” Twitter walks you through another few steps to find your friends on the service and suggest peopleyou might want to follow. Following is described later in this chapter. Turn the page for quick tips on fleshing out your account so that other people find it appealing.
Twitter mutator methods
Mutator Methods
In addition to the accessor methods described in the preceding section,you might alsowant to manipulate Twitter data.These methods require a POST operation for mutating
Twitter data and are split into the following categories of methods:
- Account
Twitter maintains a concise profile for every user that can be updated via the account/update_profile method.This can be used to update their name,description,and location.You can also update colors and images via the account/update_profile_background, account/update_profile_colors,and account/update_
profile_image methods.For users who want updates to be sent to their cellphone,you can set the account/update_delivery_device method.Finally,for ending a Twitter session,you should use the account/end_session method,which logs your user out of your application and Twitter.
- Block
One method exists for blocking nuisance users (blocks/create/<<id>>),and another exists for unblocking should a user change his mind (blocks/destroy/<<id>>).www.it-ebooks.info
- Direct messages
Some applications may want to send or delete messages on behalf of their users.Thedirect_messages/destroy/<<id>> and direct_messages/new methods exist for such a use case.
- Favorites
If you want to manage a user’s favorite tweets in your application,both the favorites/create/<<id>> and favorites/destroy/<<id>> methods should come in handy.Simply supplying an <<id>> will add or remove a favorite from a user’s profile.
- Friendships
For managing a user’s friends list,the friendships/create/<<id>> and friendships/destroy/<<id>> methods are particularly useful for creating and destroying connections.Like the methods for manipulating favorites,all you need to provide is an <<id>> of the user to follow or un-follow.
- Notifications
If users request to receive updates to their cell phone,you can use the notifications/follow/<<id>> and notifications/leave/<<id>> methods to set which friends they receive updates from.
- Saved searches
Users sometimes may want to store frequently requested searches into their profile so that they are easy to access at later dates.The saved_searches/create and saved_searches/destroy/<<id>> methods make this action seamless.
- Statuses
You can use status methods to create statuses (statuses/update) and to delete them (statuses/destroy/<<id>>).You can also use a status method to retweet a status (statuses/retweet/<<id>>).
Twitter API accessor methods
Accessor Methods
These methods require a GET operation for extracting data from Twitter and are split into the following categories:- Account methods
The account/rate_limit_status method returns the number of requests that a user has remaining before his limit is refreshed.At the time of this writing,users had approximately 150 requests available to them per hour.The account/verify_credentials method checks whether a user’s credentials,in the form of a username and password or OAuth tokens,are valid and returns an error or User object if successful. www.it-ebooks.info
- Block methods
The blocks/blocking method returns a collection of users that a user has blocked on Twitter.The blocks/blocking/ids method returns the same collection of users as the blocks/blocking method,although you are given only their user identifiers.The blocks/exists/<<id>> method checks whether a specified user has been blocked by the authenticated user.
- Direct messages methods
The direct_messages method retrieves a number of messages that a user has received and works alongside the direct_messages/sent method,which refers to the messages that the authenticated user has sent.
- Favorites methods
The favorites method returns a number of updates that a user has marked as a favorite.Favorites in Twitter are similar to bookmarks in a web browser.
- Friendships methods
The friendships/exists method returns a simple true or false if two users are following each other.In addition,the friendships/show method can be used to extract more detailed information,such as whether the follow is reciprocated.
- Help methods
The help/test method can be used to check whether the Twitter API is up and running and does not count toward a user’s rate limit.
- Saved searches methods
The saved_searches method returns a list of search terms that the authenticated user has saved.A particular search can be retrieved via the saved_searches/show/<<id>> method.
- Search methods
The search method is used to perform powerful searches and is covered in detail in the front
- Social graph methods
The followers/ids and friends/ids methods return the identifiers of all the followers and friends a user has.For users with large numbers of connections,this can be iterated over to retrieve them all.
- Status methods
The statuses/retweets/<<id>> method retrieves a number of statuses that have “retweeted”the original <<id>> update.The statuses/show/<<id>> method simply returns the Status object (see Chapter 2) for a given <<id>>.
- Timeline methods
The statuses/friends_timeline, statuses/home_timeline, statuses/public_timeline and statuses/user_timeline methods return a collection of Status www.it-ebooks.info objects (see Chapter 2) for a user’s friends,everyone on Twitter,or a specific user.In addition,mentions (updates that reference a particular user) of the authenticated user can be retrieved through the statuses/mentions method.Three retweet
methods exist and are covered in Chapter 4: statuses/retweeted_by_me, statuses/retweets_of_me,and statuses/retweeted_to_me.
- Trends methods
The trends method can be used to return the topics that are currently “trending” on Twitter.To refine this search,you can also use the trends/current, trends/ daily,and trends/weekly methods.In addition to these three methods,Twitter has two “local trends”methods—trends/available and trends/location—which
return trends for a given area (for example,the buzz in London or San Francisco).
- User methods
The final set of methods is for returning details about users such as extracting the details of followers (statuses/followers) and friends (statuses/friends),but also for specific users via the users/show and users/lookup methods.Twitter enables you to search for users via the users/search method,and to access suggested users through the users/suggestions and users/suggestions/<<category>> methods.
Twitter API Method
Twitter API Versioning
The Twitter API supports versioning, which means that Twitter will be able to provide beta functionality without compromising stable code. There are currently two method address conventions: one for search methods, http://search.twitter.com/; and one for other methods, https://api.twitter.com/<<version>>/. In the second case, you can replace <<version>> with the version number that you intend to use, which should be set to 2 (the latest release version as of this writing). Twitter expects that deprecation between old and
new versions will take approximately six months, and so you have plenty of time to update code before changes become permanent.
The Twitter API supports versioning, which means that Twitter will be able to provide beta functionality without compromising stable code. There are currently two method address conventions: one for search methods, http://search.twitter.com/; and one for other methods, https://api.twitter.com/<<version>>/. In the second case, you can replace <<version>> with the version number that you intend to use, which should be set to 2 (the latest release version as of this writing). Twitter expects that deprecation between old and
new versions will take approximately six months, and so you have plenty of time to update code before changes become permanent.
Representational State Transfer (REST)
The Twitter API is a Representational State Transfer (REST)-based resource exposed over HTTP(S),which means that “accessor”methods (those that retrieve data) require a GET operation and “mutator”methods (those that create,update,or destroy data) require a POST operation.
REST-based web services such as the Twitter API consist of three elements:
HTTP operation
How the request is being transferred to the Twitter API.The transfer operations are GET, POST, PUT,and DELETE,as described earlier,and which operation is appropriate depends on the method being executed.Supplying an incorrect operation will result in an error.
Method
A URL that points to the location of a resource on Twitter’s servers.A list of methods appears in the next section,and Chapter 2 further describes these methods. Methods can also include a number of parameters for customizing requests (for example,returning only a certain number of values) or for supplying update text.
Return format
The format in which to return data back,which must be supported by that method.Twitter accommodates Extensible Markup Language (XML),JavaScript Object Notation (JSON),Really Simple Syndication (RSS),and Atom return formats depending on the method that has been executed.For example,changing the URL extension of a request from .xml to .json will adjust the return format.
REST-based web services such as the Twitter API consist of three elements:
HTTP operation
How the request is being transferred to the Twitter API.The transfer operations are GET, POST, PUT,and DELETE,as described earlier,and which operation is appropriate depends on the method being executed.Supplying an incorrect operation will result in an error.
Method
A URL that points to the location of a resource on Twitter’s servers.A list of methods appears in the next section,and Chapter 2 further describes these methods. Methods can also include a number of parameters for customizing requests (for example,returning only a certain number of values) or for supplying update text.
Return format
The format in which to return data back,which must be supported by that method.Twitter accommodates Extensible Markup Language (XML),JavaScript Object Notation (JSON),Really Simple Syndication (RSS),and Atom return formats depending on the method that has been executed.For example,changing the URL extension of a request from .xml to .json will adjust the return format.
Đăng ký:
Bài đăng (Atom)
