SlideShare una empresa de Scribd logo
1 de 38
Descargar para leer sin conexión
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

Más contenido relacionado

Similar a @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 a @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?
 

Último

How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 

Último (20)

How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 

@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