SlideShare a Scribd company logo
1 of 38
Download to read offline
TM




Wednesday, September 8, 2010
Twitter API
                      #tmeetup @themattharris @mccv @paypalx




 @paypalx                                                      TM



 September 8, 2010
Wednesday, September 8, 2010
About us


                                   TM




Wednesday, September 8, 2010
The         team




                                      TM




Wednesday, September 8, 2010
dev.twitter.com
                        The developer portal




                                               TM




Wednesday, September 8, 2010
Creating an app
                        Your own small playground




                                                    TM




Wednesday, September 8, 2010
TM




Wednesday, September 8, 2010
TM




Wednesday, September 8, 2010
TM




Wednesday, September 8, 2010
Browsing docs


                                        TM




Wednesday, September 8, 2010
TM




Wednesday, September 8, 2010
TM




Wednesday, September 8, 2010
TM




Wednesday, September 8, 2010
The Streams


                                      TM




Wednesday, September 8, 2010
What is Streaming?
                   ‣    Push delivery of tweets, as opposed to the REST (pull) API
                   ‣    Implemented as HTTP long poll, aka the web page that never
                        ends
                   ‣    JSON (preferred) or XML content




                                                                                     TM




Wednesday, September 8, 2010
Streaming “Products”
                   ‣    hoses - slices of the entire tweet corpus
                   ‣    firehose
                   ‣    filter
                   ‣    sample
                   ‣    users - focused on specific users’ content
                   ‣    user streams
                   ‣    site streams




                                                                     TM




Wednesday, September 8, 2010
Getting Started
                   ‣    cURL is your friend
                   ‣    twurl is an even better friend
                   ‣    Many libraries available




                                                         TM




Wednesday, September 8, 2010
User Streams
                   ‣    Goals
                   ‣    Support single-user connections (e.g. desktop applications)
                   ‣    Reduce dependency on polling
                   ‣    Provide a true real time experience to users




                                                                                      TM




Wednesday, September 8, 2010
Data Delivered
                   ‣    All data is delivered as a JSON message on a single line
                   ‣    First message - your friends
                   ‣    Statuses
                   ‣    Direct Messages
                   ‣    Events




                                                                                   TM




Wednesday, September 8, 2010
What are Events?
                  ‣     Events represent user activities that are not message delivery
                  ‣     This includes
                  ‣     favorites
                  ‣     follows
                  ‣     profile updates




                                                                                         TM




Wednesday, September 8, 2010
Event Schema
                   ‣    event - indicates the type of event
                   ‣    source - the user who initiated the action
                   ‣    target - the user who owns the affected object.
                   ‣    target_object (optional) - the affected object
                   ‣    created_at - the time this happened




                                                                          TM




Wednesday, September 8, 2010
Site Streams
                   ‣    Goals
                   ‣    Like User Streams
                   ‣    But for “services”, not desktop apps.
                   ‣    Multiplex many users’ events onto a single connection




                                                                                TM




Wednesday, September 8, 2010
Data Delivered
                   ‣    Just the same as user stream
                   ‣    But every message is wrapped with a “for_user” tag, which gives
                        the ID of the user to whom this message applies




                                                                                          TM




Wednesday, September 8, 2010
Keys to Success
                   ‣    Use OAuth
                   ‣    Use JSON
                   ‣    Process messages asynchronously
                   ‣    Make sure you have adequate bandwidth
                   ‣    Be prepared for additional message types




                                                                   TM




Wednesday, September 8, 2010
More Info!                                  Follow us at
                                                                     twitter.com/jkalucki
                                                                     twitter.com/mccv
                        http://dev.twitter.com/pages/streaming_api




                                                                                            TM




Wednesday, September 8, 2010
Tweet Button


                                       TM




Wednesday, September 8, 2010
Source: http://twittercounter.com/compare/YouTube/3month/followers   TM




Wednesday, September 8, 2010
Source: http://twittercounter.com/compare/YouTube/3month/followers   TM




Wednesday, September 8, 2010
Basic Example
                   <script src="http://platform.twitter.com/widgets.js"
                           type="text/javascript"></script>
                   <a href="http://twitter.com/share"
                      class="twitter-share-button">Tweet</a>




                                                                          TM




Wednesday, September 8, 2010
Customising
                   ‣    url - URL of the page to share
                   ‣    via - Screen name of the user to attribute the Tweet to
                   ‣    text - Default Tweet text
                   ‣    related - Related accounts
                   ‣    count - Count box position
                   ‣    lang - The language for the Tweet Button
                   ‣    counturl - The URL to which your shared URL resolves to

                                                                                  TM




Wednesday, September 8, 2010
Customised Example
                   <script src="http://platform.twitter.com/widgets.js"
                            type="text/javascript"></script>
                   <div>
                      <a href="http://twitter.com/share"
                          class="twitter-share-button"
                          data-url="http://dev.twitter.com/pages/tweet_button"
                          data-via="twitterapi"
                          data-text="Checking out this page about Tweet Buttons"
                          data-related="anywhere:The Javascript API"
                          data-count="vertical">Tweet</a>
                   </div>




                                                                                   TM




Wednesday, September 8, 2010
Customised Example with Short URL
                   <script src="http://platform.twitter.com/widgets.js"
                            type="text/javascript"></script>
                   <div>
                     <a href="http://twitter.com/share"
                         class="twitter-share-button"
                         data-url="http://bit.ly/twitter-api-announce"
                         data-counturl="http://groups.google.com/group/twitter-api-announce"
                         data-count="vertical">Tweet</a>
                   </div>




                                                                                               TM




Wednesday, September 8, 2010
More Info!
                        http://dev.twitter.com/pages/tweet_button




                                                                    TM




Wednesday, September 8, 2010
Stay Informed...   Join
                                                  bit.ly/twitter-anywhere-talk
                                                  bit.ly/twitter-dev-talk

                                                  Important Stuff
                                                  @twitterapi
                                                  status.twitter.com
                                                  bit.ly/twitter-api-announce


                                                                          TM




Wednesday, September 8, 2010
Help...   Check out
                                         dev.twitter.com




                                                           TM




Wednesday, September 8, 2010
Join the Flock!   Find out more
                                                 jobs.twitter.com




                                                                    TM




Wednesday, September 8, 2010
Questions?   Follow us at
                                            twitter.com/twitterapi
                                            twitter.com/themattharris
                                            twitter.com/mccv




                                                                   TM




Wednesday, September 8, 2010
TM




Wednesday, September 8, 2010

More Related Content

Similar to @twitterapi meetup at Paypal Town Hall

Qconsp domesticando dragoes com soluções escaláveis
Qconsp   domesticando dragoes com soluções escaláveisQconsp   domesticando dragoes com soluções escaláveis
Qconsp domesticando dragoes com soluções escaláveisBruno Oliveira
 
Mobile Strategy & Product Dev. - iRush
Mobile Strategy & Product Dev. - iRushMobile Strategy & Product Dev. - iRush
Mobile Strategy & Product Dev. - iRushAndrew Donoho
 
Html5 apps nikolaionken-08-06
Html5 apps nikolaionken-08-06Html5 apps nikolaionken-08-06
Html5 apps nikolaionken-08-06Skills Matter
 
Opening up the Social Web - Standards that are bridging the Islands
Opening up the Social Web - Standards that are bridging the Islands Opening up the Social Web - Standards that are bridging the Islands
Opening up the Social Web - Standards that are bridging the Islands Bastian Hofmann
 
OSMC2010 Open NMS Kickstart
OSMC2010 Open NMS KickstartOSMC2010 Open NMS Kickstart
OSMC2010 Open NMS KickstartRonny
 
Doing Your HW - A UX approach to your web design
Doing Your HW - A UX approach to your web designDoing Your HW - A UX approach to your web design
Doing Your HW - A UX approach to your web designFabian Alcantara
 
Vefica presentatie TV2.0 & IFA 2010
Vefica presentatie TV2.0 & IFA 2010Vefica presentatie TV2.0 & IFA 2010
Vefica presentatie TV2.0 & IFA 2010Vincent Everts
 
Google App Engine - Devfest India 2010
Google App Engine -  Devfest India 2010Google App Engine -  Devfest India 2010
Google App Engine - Devfest India 2010Patrick Chanezon
 
Managing technical communicators in an XML environment
Managing technical communicators in an XML environmentManaging technical communicators in an XML environment
Managing technical communicators in an XML environmentScriptorium Publishing
 
Advanced android
Advanced androidAdvanced android
Advanced androiddonnfelker
 
Rana June 360i Dev Talk
Rana June 360i Dev TalkRana June 360i Dev Talk
Rana June 360i Dev Talkranajune
 
Is the iPad just a big iPhone?
Is the iPad just a big iPhone?Is the iPad just a big iPhone?
Is the iPad just a big iPhone?Griffin Technology
 

Similar to @twitterapi meetup at Paypal Town Hall (15)

Qconsp domesticando dragoes com soluções escaláveis
Qconsp   domesticando dragoes com soluções escaláveisQconsp   domesticando dragoes com soluções escaláveis
Qconsp domesticando dragoes com soluções escaláveis
 
Mobile Strategy & Product Dev. - iRush
Mobile Strategy & Product Dev. - iRushMobile Strategy & Product Dev. - iRush
Mobile Strategy & Product Dev. - iRush
 
Html5 apps nikolaionken-08-06
Html5 apps nikolaionken-08-06Html5 apps nikolaionken-08-06
Html5 apps nikolaionken-08-06
 
Vagrant at LA Ruby
Vagrant at LA RubyVagrant at LA Ruby
Vagrant at LA Ruby
 
Opening up the Social Web - Standards that are bridging the Islands
Opening up the Social Web - Standards that are bridging the Islands Opening up the Social Web - Standards that are bridging the Islands
Opening up the Social Web - Standards that are bridging the Islands
 
OSMC2010 Open NMS Kickstart
OSMC2010 Open NMS KickstartOSMC2010 Open NMS Kickstart
OSMC2010 Open NMS Kickstart
 
Doing Your HW - A UX approach to your web design
Doing Your HW - A UX approach to your web designDoing Your HW - A UX approach to your web design
Doing Your HW - A UX approach to your web design
 
Vefica presentatie TV2.0 & IFA 2010
Vefica presentatie TV2.0 & IFA 2010Vefica presentatie TV2.0 & IFA 2010
Vefica presentatie TV2.0 & IFA 2010
 
Google App Engine - Devfest India 2010
Google App Engine -  Devfest India 2010Google App Engine -  Devfest India 2010
Google App Engine - Devfest India 2010
 
HTML5 offline
HTML5 offlineHTML5 offline
HTML5 offline
 
Ruby off Rails
Ruby off RailsRuby off Rails
Ruby off Rails
 
Managing technical communicators in an XML environment
Managing technical communicators in an XML environmentManaging technical communicators in an XML environment
Managing technical communicators in an XML environment
 
Advanced android
Advanced androidAdvanced android
Advanced android
 
Rana June 360i Dev Talk
Rana June 360i Dev TalkRana June 360i Dev Talk
Rana June 360i Dev Talk
 
Is the iPad just a big iPhone?
Is the iPad just a big iPhone?Is the iPad just a big iPhone?
Is the iPad just a big iPhone?
 

Recently uploaded

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 

Recently uploaded (20)

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 

@twitterapi meetup at Paypal Town Hall

  • 2. Twitter API #tmeetup @themattharris @mccv @paypalx @paypalx TM September 8, 2010 Wednesday, September 8, 2010
  • 3. About us TM Wednesday, September 8, 2010
  • 4. The team TM Wednesday, September 8, 2010
  • 5. dev.twitter.com The developer portal TM Wednesday, September 8, 2010
  • 6. Creating an app Your own small playground TM Wednesday, September 8, 2010
  • 10. Browsing docs TM Wednesday, September 8, 2010
  • 14. The Streams TM Wednesday, September 8, 2010
  • 15. What is Streaming? ‣ Push delivery of tweets, as opposed to the REST (pull) API ‣ Implemented as HTTP long poll, aka the web page that never ends ‣ JSON (preferred) or XML content TM Wednesday, September 8, 2010
  • 16. Streaming “Products” ‣ hoses - slices of the entire tweet corpus ‣ firehose ‣ filter ‣ sample ‣ users - focused on specific users’ content ‣ user streams ‣ site streams TM Wednesday, September 8, 2010
  • 17. Getting Started ‣ cURL is your friend ‣ twurl is an even better friend ‣ Many libraries available TM Wednesday, September 8, 2010
  • 18. User Streams ‣ Goals ‣ Support single-user connections (e.g. desktop applications) ‣ Reduce dependency on polling ‣ Provide a true real time experience to users TM Wednesday, September 8, 2010
  • 19. Data Delivered ‣ All data is delivered as a JSON message on a single line ‣ First message - your friends ‣ Statuses ‣ Direct Messages ‣ Events TM Wednesday, September 8, 2010
  • 20. What are Events? ‣ Events represent user activities that are not message delivery ‣ This includes ‣ favorites ‣ follows ‣ profile updates TM Wednesday, September 8, 2010
  • 21. Event Schema ‣ event - indicates the type of event ‣ source - the user who initiated the action ‣ target - the user who owns the affected object. ‣ target_object (optional) - the affected object ‣ created_at - the time this happened TM Wednesday, September 8, 2010
  • 22. Site Streams ‣ Goals ‣ Like User Streams ‣ But for “services”, not desktop apps. ‣ Multiplex many users’ events onto a single connection TM Wednesday, September 8, 2010
  • 23. Data Delivered ‣ Just the same as user stream ‣ But every message is wrapped with a “for_user” tag, which gives the ID of the user to whom this message applies TM Wednesday, September 8, 2010
  • 24. Keys to Success ‣ Use OAuth ‣ Use JSON ‣ Process messages asynchronously ‣ Make sure you have adequate bandwidth ‣ Be prepared for additional message types TM Wednesday, September 8, 2010
  • 25. More Info! Follow us at twitter.com/jkalucki twitter.com/mccv http://dev.twitter.com/pages/streaming_api TM Wednesday, September 8, 2010
  • 26. Tweet Button TM Wednesday, September 8, 2010
  • 29. Basic Example <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script> <a href="http://twitter.com/share" class="twitter-share-button">Tweet</a> TM Wednesday, September 8, 2010
  • 30. Customising ‣ url - URL of the page to share ‣ via - Screen name of the user to attribute the Tweet to ‣ text - Default Tweet text ‣ related - Related accounts ‣ count - Count box position ‣ lang - The language for the Tweet Button ‣ counturl - The URL to which your shared URL resolves to TM Wednesday, September 8, 2010
  • 31. Customised Example <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script> <div> <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://dev.twitter.com/pages/tweet_button" data-via="twitterapi" data-text="Checking out this page about Tweet Buttons" data-related="anywhere:The Javascript API" data-count="vertical">Tweet</a> </div> TM Wednesday, September 8, 2010
  • 32. Customised Example with Short URL <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script> <div> <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://bit.ly/twitter-api-announce" data-counturl="http://groups.google.com/group/twitter-api-announce" data-count="vertical">Tweet</a> </div> TM Wednesday, September 8, 2010
  • 33. More Info! http://dev.twitter.com/pages/tweet_button TM Wednesday, September 8, 2010
  • 34. Stay Informed... Join bit.ly/twitter-anywhere-talk bit.ly/twitter-dev-talk Important Stuff @twitterapi status.twitter.com bit.ly/twitter-api-announce TM Wednesday, September 8, 2010
  • 35. Help... Check out dev.twitter.com TM Wednesday, September 8, 2010
  • 36. Join the Flock! Find out more jobs.twitter.com TM Wednesday, September 8, 2010
  • 37. Questions? Follow us at twitter.com/twitterapi twitter.com/themattharris twitter.com/mccv TM Wednesday, September 8, 2010