SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Downloaden Sie, um offline zu lesen
Twitter API, Streaming
and SharePoint 2013


This is Larry!
DEMO
Realizing a live twitter wall with twitterizer and put it on a SharePoint
                               2013 page.
Twitter API, Streaming and SharePoint 2013
About me
• 25
• SharePoint
  • Web dev
  • Consulting
• @hupseb
• Employed at            - alegri.eu
• sharepoint.stackexchange.com
• No blog yet  Working on it... ;)
• Foundation year: 2001
• 225 employees (DACH region)
• 8 locations
• One of the biggest Microsoft-
  and Unite- (SAP & Microsoft)
  partners in Germany
• 60+ of DAX 100 companies
  are our costumers
• Consulting Excellence in Microsoft
  Enterprise Solutions
• Alegri.eu
Twitter
• Social networking and
  microblogging service
• Founded 2006 by Jack Dorsey
• Amount of users grows and
  grows and...
   • End of 2011 – 100 million
   • March 2013 – 1200 million
• 340 million tweets daily
• 1.6 billion search queries per
  day
• business.twitter.com
Why you should use it!




              Scott Hanselman reads my tweet!
DEMO
Put the twitter widget into a SharePoint 2013 page.
Twitter API, Streaming and SharePoint 2013
The twitter APIs - overview
• REST APIs – (Representational State Transfer)
  • Search API
  • REST API v.1.1 (v.1 depricated – blackout tests running)
  • In pipeline to unify
     • Parameters (count vs. page and rpp)
     • Object differences
  • Poll-based system / pseudo real-time
• Streaming API
  • Supports long-lived connections on a different architecture
  • Real-time delivery of tweets
How to search for tweets
• Search API
  • http://search.twitter.com/search.json?q=twitter
  • Non authentication possible
  • Very limited

• REST API v.1.1
  • https://api.twitter.com/1.1/search/tweets.json
  • Authentication required
     • More queries
     • Better Limits
Differences between Streaming and REST




                           © dev.twitter.com
Differences between Streaming and
REST




                             © dev.twitter.com
Streaming API
• Streamed via HTTP
• Three streams
   • Public stream
   • User stream
   • Site stream
• Firehose
   • Attaching to ALL tweets worldwide
   • Only for Twitter partners
   • http://gnip.com/twitter/  Premium twitter streams
• no official volume limit
• 400 track keywords, 5,000 follow userids and 25 0.1-360 degree
  location boxes
Architecture of TwitterSky
1. SignalR hub initializes

                     2. Use Twitterizer to attach
                     to Twitter streaming API


                                           5. Asynchronous notification
                                           of new tweets
                                                                                        4. Answer each
           6. Pushes tweet to                                                           tweet as a chunk
           the connected
           clients                                                 3. Authenticate to
                                                                   twitter
                                                                   Streaming API
                                                                   via oAuth.




      7. Client renders the tweets
CODE
Let‘s talk about the code ;) Bits and bytes!
Limits, limits, limits...
•   Direct messages: 250 per day
•   Tweets: 1,000 per day
•   Changes to account email: 4 per hour
•   Following: 1,000 per day + aggressive follower block
•   Following (account-based): Once an account is following 2,000 more
    follower are needed to follow more people.

• Reading request from applications:
     • 150 unauthenticated per hour per IP
     • Authenticated depends on method that is called:
        • https://dev.twitter.com/docs/rate-limiting/1.1
        • https://dev.twitter.com/docs/rate-limiting/1.1/limits
... limits, limits... limits!
• X-Rate-Limit-Limit:
     rate limit ceiling for current request
• X-Rate-Limit-Remaining:
     number of requests left
• X-Rate-Limit-Reset:
     the remaining time window before reset
Sources
•   https://dev.twitter.com/docs/things-every-developer-should-know
•   http://speakinghacks.com/
•   https://dev.twitter.com/docs
•   https://github.com/Twitterizer/Twitterizer
•   http://twopcharts.com/twitter1billion.php
•   http://mashable.com/2009/11/02/twitter-lists-guide/



• @TwitterEng, @twitter, @twitterapi
Twitter API, Streaming and SharePoint 2013
Thank you...
  ... see you next time! ;)
Search API
• Just two methods search and trends.
• Parameters to create advanced searches: location, language,
  tweets to/about/from specific users, more.
• Retrieve trends, find out what´s hot on twitter programmatically.
REST API v.1.1
• 87 methods mirroring nearly all of twitter's user-facing features
• Returns XML or JSON for all methods, RSS and ATOM for
  methods that return timelines.
• Supports JSON callbacks, a variety of parameters to slice 'n
  dice.
• Meaningful use of HTTP response codes, plus explanatory error
  messages in the requested format.
Goodies – hotkeys I
• Aktionen                  • Navigation

N       Neuer Tweet         ?     Hilfe
F       Favorisieren        J     Nächster Tweet
R       Antworten           K     Vorheriger Tweet
T       Retweeten           Space Zum Seitenende
M       Direktnachricht     /     Suche
B       Nutzer blockieren   .     Neue Tweets laden
U       Nutzer entblocken
Enter   Details
L       Alle schließen
Goodies – hotkeys II
• Timelines

GH   Startseite    GF    Favoriten
GC   Verbinden     GL    Listen
GA   Aktivität     GM    Nachrichten
GR   Erwähnungen   GS    Einstellungen
GD   Entdecken     GU     Gehe zu
GP   Profil        Benutzer...

GF   Favoriten

Más contenido relacionado

Was ist angesagt?

Integrating RSS Into Your Web Site
Integrating RSS Into Your Web SiteIntegrating RSS Into Your Web Site
Integrating RSS Into Your Web SiteMichael Sauers
 
Why API Security Is More Complicated Than You Think (and Why It’s Your #1 Pri...
Why API Security Is More Complicated Than You Think (and Why It’s Your #1 Pri...Why API Security Is More Complicated Than You Think (and Why It’s Your #1 Pri...
Why API Security Is More Complicated Than You Think (and Why It’s Your #1 Pri...ProgrammableWeb
 
Using & Abusing APIs: An Examination of the API Attack Surface
Using & Abusing APIs: An Examination of the API Attack SurfaceUsing & Abusing APIs: An Examination of the API Attack Surface
Using & Abusing APIs: An Examination of the API Attack SurfaceCA API Management
 
Twitter API & OAuth 101 TVUG October 2009
Twitter API & OAuth 101 TVUG October 2009Twitter API & OAuth 101 TVUG October 2009
Twitter API & OAuth 101 TVUG October 2009Andrew Badera
 
Protecting Your APIs Against Attack & Hijack
Protecting Your APIs Against Attack & Hijack Protecting Your APIs Against Attack & Hijack
Protecting Your APIs Against Attack & Hijack CA API Management
 
Howtwitter works
Howtwitter worksHowtwitter works
Howtwitter workszebikhan
 

Was ist angesagt? (7)

Integrating RSS Into Your Web Site
Integrating RSS Into Your Web SiteIntegrating RSS Into Your Web Site
Integrating RSS Into Your Web Site
 
Why API Security Is More Complicated Than You Think (and Why It’s Your #1 Pri...
Why API Security Is More Complicated Than You Think (and Why It’s Your #1 Pri...Why API Security Is More Complicated Than You Think (and Why It’s Your #1 Pri...
Why API Security Is More Complicated Than You Think (and Why It’s Your #1 Pri...
 
Using & Abusing APIs: An Examination of the API Attack Surface
Using & Abusing APIs: An Examination of the API Attack SurfaceUsing & Abusing APIs: An Examination of the API Attack Surface
Using & Abusing APIs: An Examination of the API Attack Surface
 
Twitter API & OAuth 101 TVUG October 2009
Twitter API & OAuth 101 TVUG October 2009Twitter API & OAuth 101 TVUG October 2009
Twitter API & OAuth 101 TVUG October 2009
 
B 3 line bot live coding
B 3 line bot live codingB 3 line bot live coding
B 3 line bot live coding
 
Protecting Your APIs Against Attack & Hijack
Protecting Your APIs Against Attack & Hijack Protecting Your APIs Against Attack & Hijack
Protecting Your APIs Against Attack & Hijack
 
Howtwitter works
Howtwitter worksHowtwitter works
Howtwitter works
 

Andere mochten auch

Identifying actionable messages on social media
Identifying actionable messages on social mediaIdentifying actionable messages on social media
Identifying actionable messages on social mediaNemanja Spasojevic
 
R-Users Group JSON and ReST Introduction using Twitter
R-Users Group JSON and ReST Introduction using TwitterR-Users Group JSON and ReST Introduction using Twitter
R-Users Group JSON and ReST Introduction using TwitterKevin Smith
 
Introduction to software that can be used to capture and analyse Twitter data
Introduction to software that can be used to capture and analyse Twitter dataIntroduction to software that can be used to capture and analyse Twitter data
Introduction to software that can be used to capture and analyse Twitter dataDr Wasim Ahmed
 
The Art of Social Media Analysis with Twitter & Python
The Art of Social Media Analysis with Twitter & PythonThe Art of Social Media Analysis with Twitter & Python
The Art of Social Media Analysis with Twitter & PythonKrishna Sankar
 
REST to RESTful Web Service
REST to RESTful Web ServiceREST to RESTful Web Service
REST to RESTful Web Service家弘 周
 
Social media analysis in R using twitter API
Social media analysis in R using twitter API Social media analysis in R using twitter API
Social media analysis in R using twitter API Mohd Shadab Alam
 

Andere mochten auch (7)

Identifying actionable messages on social media
Identifying actionable messages on social mediaIdentifying actionable messages on social media
Identifying actionable messages on social media
 
R-Users Group JSON and ReST Introduction using Twitter
R-Users Group JSON and ReST Introduction using TwitterR-Users Group JSON and ReST Introduction using Twitter
R-Users Group JSON and ReST Introduction using Twitter
 
Introduction to software that can be used to capture and analyse Twitter data
Introduction to software that can be used to capture and analyse Twitter dataIntroduction to software that can be used to capture and analyse Twitter data
Introduction to software that can be used to capture and analyse Twitter data
 
Twitter api
Twitter apiTwitter api
Twitter api
 
The Art of Social Media Analysis with Twitter & Python
The Art of Social Media Analysis with Twitter & PythonThe Art of Social Media Analysis with Twitter & Python
The Art of Social Media Analysis with Twitter & Python
 
REST to RESTful Web Service
REST to RESTful Web ServiceREST to RESTful Web Service
REST to RESTful Web Service
 
Social media analysis in R using twitter API
Social media analysis in R using twitter API Social media analysis in R using twitter API
Social media analysis in R using twitter API
 

Ähnlich wie Twitter API, Streaming and SharePoint 2013

Turbocharge Twitter With Apps SMBMTL 082510
Turbocharge Twitter With Apps SMBMTL 082510Turbocharge Twitter With Apps SMBMTL 082510
Turbocharge Twitter With Apps SMBMTL 082510Adele McAlear
 
CSE5656 Complex Networks - Gathering Data from Twitter
CSE5656 Complex Networks - Gathering Data from TwitterCSE5656 Complex Networks - Gathering Data from Twitter
CSE5656 Complex Networks - Gathering Data from TwitterMarcello Tomasini
 
Open Network Live - Chirp 情報共有
Open Network Live - Chirp 情報共有Open Network Live - Chirp 情報共有
Open Network Live - Chirp 情報共有Open Network Lab
 
[System design] Design a tweeter-like system
[System design] Design a tweeter-like system[System design] Design a tweeter-like system
[System design] Design a tweeter-like systemAree Oh
 
TERMINALFOUR t44u 2012 - Social poster demonstration
TERMINALFOUR t44u 2012 - Social poster demonstrationTERMINALFOUR t44u 2012 - Social poster demonstration
TERMINALFOUR t44u 2012 - Social poster demonstrationTerminalfour
 
Mz twitter-1.1-sdl
Mz twitter-1.1-sdlMz twitter-1.1-sdl
Mz twitter-1.1-sdlAngus Fox
 
Twitter for Business Talk 2012
Twitter for Business Talk 2012Twitter for Business Talk 2012
Twitter for Business Talk 2012Karen Kefauver
 
Twitter 101 - sending your first tweet
Twitter 101 - sending your first tweetTwitter 101 - sending your first tweet
Twitter 101 - sending your first tweetStephanie Butler
 
Around the Twitter World in 60 Minutes
Around the Twitter World in 60 MinutesAround the Twitter World in 60 Minutes
Around the Twitter World in 60 MinutesTechSoup
 
Creating More Engaging Content For Social
Creating More Engaging Content For SocialCreating More Engaging Content For Social
Creating More Engaging Content For SocialEric T. Tung
 
Alfresco day madrid toni de la fuente - roadmap 2011
Alfresco day madrid   toni de la fuente - roadmap 2011Alfresco day madrid   toni de la fuente - roadmap 2011
Alfresco day madrid toni de la fuente - roadmap 2011Alfresco Software
 
Alfresco Day Madrid - Toni de la Fuente - Roadmap 2011
Alfresco Day Madrid - Toni de la Fuente - Roadmap 2011Alfresco Day Madrid - Toni de la Fuente - Roadmap 2011
Alfresco Day Madrid - Toni de la Fuente - Roadmap 2011Toni de la Fuente
 
Twitter Streaming API
Twitter Streaming APITwitter Streaming API
Twitter Streaming APIGareth Lloyd
 
Building A Great API - Evan Cooke, Cloudstock, December 2010
Building A Great API - Evan Cooke, Cloudstock, December 2010Building A Great API - Evan Cooke, Cloudstock, December 2010
Building A Great API - Evan Cooke, Cloudstock, December 2010Twilio Inc
 
London Twitter Developer Nest - April 2010
London Twitter Developer Nest - April 2010London Twitter Developer Nest - April 2010
London Twitter Developer Nest - April 2010Angus Fox
 
Создание API, которое полюбят разработчики. Глубокое погружение
Создание API, которое полюбят разработчики. Глубокое погружениеСоздание API, которое полюбят разработчики. Глубокое погружение
Создание API, которое полюбят разработчики. Глубокое погружениеSQALab
 
Napoleon - your brand management Cat
Napoleon - your brand management CatNapoleon - your brand management Cat
Napoleon - your brand management CatNapoleonCat
 
iPhoneアプリのTwitter連携
iPhoneアプリのTwitter連携iPhoneアプリのTwitter連携
iPhoneアプリのTwitter連携So Matsuda
 
APIs : Mapping the way
APIs : Mapping the wayAPIs : Mapping the way
APIs : Mapping the wayWSO2
 

Ähnlich wie Twitter API, Streaming and SharePoint 2013 (20)

Turbocharge Twitter With Apps SMBMTL 082510
Turbocharge Twitter With Apps SMBMTL 082510Turbocharge Twitter With Apps SMBMTL 082510
Turbocharge Twitter With Apps SMBMTL 082510
 
CSE5656 Complex Networks - Gathering Data from Twitter
CSE5656 Complex Networks - Gathering Data from TwitterCSE5656 Complex Networks - Gathering Data from Twitter
CSE5656 Complex Networks - Gathering Data from Twitter
 
Find and recruit qualified candidates with Twitter
Find and recruit qualified candidates with TwitterFind and recruit qualified candidates with Twitter
Find and recruit qualified candidates with Twitter
 
Open Network Live - Chirp 情報共有
Open Network Live - Chirp 情報共有Open Network Live - Chirp 情報共有
Open Network Live - Chirp 情報共有
 
[System design] Design a tweeter-like system
[System design] Design a tweeter-like system[System design] Design a tweeter-like system
[System design] Design a tweeter-like system
 
TERMINALFOUR t44u 2012 - Social poster demonstration
TERMINALFOUR t44u 2012 - Social poster demonstrationTERMINALFOUR t44u 2012 - Social poster demonstration
TERMINALFOUR t44u 2012 - Social poster demonstration
 
Mz twitter-1.1-sdl
Mz twitter-1.1-sdlMz twitter-1.1-sdl
Mz twitter-1.1-sdl
 
Twitter for Business Talk 2012
Twitter for Business Talk 2012Twitter for Business Talk 2012
Twitter for Business Talk 2012
 
Twitter 101 - sending your first tweet
Twitter 101 - sending your first tweetTwitter 101 - sending your first tweet
Twitter 101 - sending your first tweet
 
Around the Twitter World in 60 Minutes
Around the Twitter World in 60 MinutesAround the Twitter World in 60 Minutes
Around the Twitter World in 60 Minutes
 
Creating More Engaging Content For Social
Creating More Engaging Content For SocialCreating More Engaging Content For Social
Creating More Engaging Content For Social
 
Alfresco day madrid toni de la fuente - roadmap 2011
Alfresco day madrid   toni de la fuente - roadmap 2011Alfresco day madrid   toni de la fuente - roadmap 2011
Alfresco day madrid toni de la fuente - roadmap 2011
 
Alfresco Day Madrid - Toni de la Fuente - Roadmap 2011
Alfresco Day Madrid - Toni de la Fuente - Roadmap 2011Alfresco Day Madrid - Toni de la Fuente - Roadmap 2011
Alfresco Day Madrid - Toni de la Fuente - Roadmap 2011
 
Twitter Streaming API
Twitter Streaming APITwitter Streaming API
Twitter Streaming API
 
Building A Great API - Evan Cooke, Cloudstock, December 2010
Building A Great API - Evan Cooke, Cloudstock, December 2010Building A Great API - Evan Cooke, Cloudstock, December 2010
Building A Great API - Evan Cooke, Cloudstock, December 2010
 
London Twitter Developer Nest - April 2010
London Twitter Developer Nest - April 2010London Twitter Developer Nest - April 2010
London Twitter Developer Nest - April 2010
 
Создание API, которое полюбят разработчики. Глубокое погружение
Создание API, которое полюбят разработчики. Глубокое погружениеСоздание API, которое полюбят разработчики. Глубокое погружение
Создание API, которое полюбят разработчики. Глубокое погружение
 
Napoleon - your brand management Cat
Napoleon - your brand management CatNapoleon - your brand management Cat
Napoleon - your brand management Cat
 
iPhoneアプリのTwitter連携
iPhoneアプリのTwitter連携iPhoneアプリのTwitter連携
iPhoneアプリのTwitter連携
 
APIs : Mapping the way
APIs : Mapping the wayAPIs : Mapping the way
APIs : Mapping the way
 

Último

The Importance of Indoor Air Quality (English)
The Importance of Indoor Air Quality (English)The Importance of Indoor Air Quality (English)
The Importance of Indoor Air Quality (English)IES VE
 
UiPath Studio Web workshop series - Day 4
UiPath Studio Web workshop series - Day 4UiPath Studio Web workshop series - Day 4
UiPath Studio Web workshop series - Day 4DianaGray10
 
UiPath Studio Web workshop series - Day 1
UiPath Studio Web workshop series  - Day 1UiPath Studio Web workshop series  - Day 1
UiPath Studio Web workshop series - Day 1DianaGray10
 
Scenario Library et REX Discover industry- and role- based scenarios
Scenario Library et REX Discover industry- and role- based scenariosScenario Library et REX Discover industry- and role- based scenarios
Scenario Library et REX Discover industry- and role- based scenariosErol GIRAUDY
 
My key hands-on projects in Quantum, and QAI
My key hands-on projects in Quantum, and QAIMy key hands-on projects in Quantum, and QAI
My key hands-on projects in Quantum, and QAIVijayananda Mohire
 
SIM INFORMATION SYSTEM: REVOLUTIONIZING DATA MANAGEMENT
SIM INFORMATION SYSTEM: REVOLUTIONIZING DATA MANAGEMENTSIM INFORMATION SYSTEM: REVOLUTIONIZING DATA MANAGEMENT
SIM INFORMATION SYSTEM: REVOLUTIONIZING DATA MANAGEMENTxtailishbaloch
 
CyberSecurity - Computers In Libraries 2024
CyberSecurity - Computers In Libraries 2024CyberSecurity - Computers In Libraries 2024
CyberSecurity - Computers In Libraries 2024Brian Pichman
 
March Patch Tuesday
March Patch TuesdayMarch Patch Tuesday
March Patch TuesdayIvanti
 
Outage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedIn
Outage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedInOutage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedIn
Outage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedInThousandEyes
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightSafe Software
 
LF Energy Webinar - Unveiling OpenEEMeter 4.0
LF Energy Webinar - Unveiling OpenEEMeter 4.0LF Energy Webinar - Unveiling OpenEEMeter 4.0
LF Energy Webinar - Unveiling OpenEEMeter 4.0DanBrown980551
 
From the origin to the future of Open Source model and business
From the origin to the future of  Open Source model and businessFrom the origin to the future of  Open Source model and business
From the origin to the future of Open Source model and businessFrancesco Corti
 
Automation Ops Series: Session 2 - Governance for UiPath projects
Automation Ops Series: Session 2 - Governance for UiPath projectsAutomation Ops Series: Session 2 - Governance for UiPath projects
Automation Ops Series: Session 2 - Governance for UiPath projectsDianaGray10
 
Oracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptxOracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptxSatishbabu Gunukula
 
Keep Your Finger on the Pulse of Your Building's Performance with IES Live
Keep Your Finger on the Pulse of Your Building's Performance with IES LiveKeep Your Finger on the Pulse of Your Building's Performance with IES Live
Keep Your Finger on the Pulse of Your Building's Performance with IES LiveIES VE
 
EMEA What is ThousandEyes? Webinar
EMEA What is ThousandEyes? WebinarEMEA What is ThousandEyes? Webinar
EMEA What is ThousandEyes? WebinarThousandEyes
 
IT Service Management (ITSM) Best Practices for Advanced Computing
IT Service Management (ITSM) Best Practices for Advanced ComputingIT Service Management (ITSM) Best Practices for Advanced Computing
IT Service Management (ITSM) Best Practices for Advanced ComputingMAGNIntelligence
 
The New Cloud World Order Is FinOps (Slideshow)
The New Cloud World Order Is FinOps (Slideshow)The New Cloud World Order Is FinOps (Slideshow)
The New Cloud World Order Is FinOps (Slideshow)codyslingerland1
 
GraphSummit Copenhagen 2024 - Neo4j Vision and Roadmap.pptx
GraphSummit Copenhagen 2024 - Neo4j Vision and Roadmap.pptxGraphSummit Copenhagen 2024 - Neo4j Vision and Roadmap.pptx
GraphSummit Copenhagen 2024 - Neo4j Vision and Roadmap.pptxNeo4j
 

Último (20)

The Importance of Indoor Air Quality (English)
The Importance of Indoor Air Quality (English)The Importance of Indoor Air Quality (English)
The Importance of Indoor Air Quality (English)
 
UiPath Studio Web workshop series - Day 4
UiPath Studio Web workshop series - Day 4UiPath Studio Web workshop series - Day 4
UiPath Studio Web workshop series - Day 4
 
UiPath Studio Web workshop series - Day 1
UiPath Studio Web workshop series  - Day 1UiPath Studio Web workshop series  - Day 1
UiPath Studio Web workshop series - Day 1
 
Scenario Library et REX Discover industry- and role- based scenarios
Scenario Library et REX Discover industry- and role- based scenariosScenario Library et REX Discover industry- and role- based scenarios
Scenario Library et REX Discover industry- and role- based scenarios
 
My key hands-on projects in Quantum, and QAI
My key hands-on projects in Quantum, and QAIMy key hands-on projects in Quantum, and QAI
My key hands-on projects in Quantum, and QAI
 
SIM INFORMATION SYSTEM: REVOLUTIONIZING DATA MANAGEMENT
SIM INFORMATION SYSTEM: REVOLUTIONIZING DATA MANAGEMENTSIM INFORMATION SYSTEM: REVOLUTIONIZING DATA MANAGEMENT
SIM INFORMATION SYSTEM: REVOLUTIONIZING DATA MANAGEMENT
 
CyberSecurity - Computers In Libraries 2024
CyberSecurity - Computers In Libraries 2024CyberSecurity - Computers In Libraries 2024
CyberSecurity - Computers In Libraries 2024
 
March Patch Tuesday
March Patch TuesdayMarch Patch Tuesday
March Patch Tuesday
 
Outage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedIn
Outage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedInOutage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedIn
Outage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedIn
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
LF Energy Webinar - Unveiling OpenEEMeter 4.0
LF Energy Webinar - Unveiling OpenEEMeter 4.0LF Energy Webinar - Unveiling OpenEEMeter 4.0
LF Energy Webinar - Unveiling OpenEEMeter 4.0
 
From the origin to the future of Open Source model and business
From the origin to the future of  Open Source model and businessFrom the origin to the future of  Open Source model and business
From the origin to the future of Open Source model and business
 
Automation Ops Series: Session 2 - Governance for UiPath projects
Automation Ops Series: Session 2 - Governance for UiPath projectsAutomation Ops Series: Session 2 - Governance for UiPath projects
Automation Ops Series: Session 2 - Governance for UiPath projects
 
Oracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptxOracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptx
 
Keep Your Finger on the Pulse of Your Building's Performance with IES Live
Keep Your Finger on the Pulse of Your Building's Performance with IES LiveKeep Your Finger on the Pulse of Your Building's Performance with IES Live
Keep Your Finger on the Pulse of Your Building's Performance with IES Live
 
SheDev 2024
SheDev 2024SheDev 2024
SheDev 2024
 
EMEA What is ThousandEyes? Webinar
EMEA What is ThousandEyes? WebinarEMEA What is ThousandEyes? Webinar
EMEA What is ThousandEyes? Webinar
 
IT Service Management (ITSM) Best Practices for Advanced Computing
IT Service Management (ITSM) Best Practices for Advanced ComputingIT Service Management (ITSM) Best Practices for Advanced Computing
IT Service Management (ITSM) Best Practices for Advanced Computing
 
The New Cloud World Order Is FinOps (Slideshow)
The New Cloud World Order Is FinOps (Slideshow)The New Cloud World Order Is FinOps (Slideshow)
The New Cloud World Order Is FinOps (Slideshow)
 
GraphSummit Copenhagen 2024 - Neo4j Vision and Roadmap.pptx
GraphSummit Copenhagen 2024 - Neo4j Vision and Roadmap.pptxGraphSummit Copenhagen 2024 - Neo4j Vision and Roadmap.pptx
GraphSummit Copenhagen 2024 - Neo4j Vision and Roadmap.pptx
 

Twitter API, Streaming and SharePoint 2013

  • 1. Twitter API, Streaming and SharePoint 2013 This is Larry!
  • 2. DEMO Realizing a live twitter wall with twitterizer and put it on a SharePoint 2013 page.
  • 4. About me • 25 • SharePoint • Web dev • Consulting • @hupseb • Employed at - alegri.eu • sharepoint.stackexchange.com • No blog yet  Working on it... ;)
  • 5. • Foundation year: 2001 • 225 employees (DACH region) • 8 locations • One of the biggest Microsoft- and Unite- (SAP & Microsoft) partners in Germany • 60+ of DAX 100 companies are our costumers • Consulting Excellence in Microsoft Enterprise Solutions • Alegri.eu
  • 6. Twitter • Social networking and microblogging service • Founded 2006 by Jack Dorsey • Amount of users grows and grows and... • End of 2011 – 100 million • March 2013 – 1200 million • 340 million tweets daily • 1.6 billion search queries per day • business.twitter.com
  • 7. Why you should use it! Scott Hanselman reads my tweet!
  • 8. DEMO Put the twitter widget into a SharePoint 2013 page.
  • 10. The twitter APIs - overview • REST APIs – (Representational State Transfer) • Search API • REST API v.1.1 (v.1 depricated – blackout tests running) • In pipeline to unify • Parameters (count vs. page and rpp) • Object differences • Poll-based system / pseudo real-time • Streaming API • Supports long-lived connections on a different architecture • Real-time delivery of tweets
  • 11. How to search for tweets • Search API • http://search.twitter.com/search.json?q=twitter • Non authentication possible • Very limited • REST API v.1.1 • https://api.twitter.com/1.1/search/tweets.json • Authentication required • More queries • Better Limits
  • 12. Differences between Streaming and REST © dev.twitter.com
  • 13. Differences between Streaming and REST © dev.twitter.com
  • 14. Streaming API • Streamed via HTTP • Three streams • Public stream • User stream • Site stream • Firehose • Attaching to ALL tweets worldwide • Only for Twitter partners • http://gnip.com/twitter/  Premium twitter streams • no official volume limit • 400 track keywords, 5,000 follow userids and 25 0.1-360 degree location boxes
  • 15. Architecture of TwitterSky 1. SignalR hub initializes 2. Use Twitterizer to attach to Twitter streaming API 5. Asynchronous notification of new tweets 4. Answer each 6. Pushes tweet to tweet as a chunk the connected clients 3. Authenticate to twitter Streaming API via oAuth. 7. Client renders the tweets
  • 16. CODE Let‘s talk about the code ;) Bits and bytes!
  • 17. Limits, limits, limits... • Direct messages: 250 per day • Tweets: 1,000 per day • Changes to account email: 4 per hour • Following: 1,000 per day + aggressive follower block • Following (account-based): Once an account is following 2,000 more follower are needed to follow more people. • Reading request from applications: • 150 unauthenticated per hour per IP • Authenticated depends on method that is called: • https://dev.twitter.com/docs/rate-limiting/1.1 • https://dev.twitter.com/docs/rate-limiting/1.1/limits
  • 18. ... limits, limits... limits! • X-Rate-Limit-Limit: rate limit ceiling for current request • X-Rate-Limit-Remaining: number of requests left • X-Rate-Limit-Reset: the remaining time window before reset
  • 19. Sources • https://dev.twitter.com/docs/things-every-developer-should-know • http://speakinghacks.com/ • https://dev.twitter.com/docs • https://github.com/Twitterizer/Twitterizer • http://twopcharts.com/twitter1billion.php • http://mashable.com/2009/11/02/twitter-lists-guide/ • @TwitterEng, @twitter, @twitterapi
  • 21. Thank you... ... see you next time! ;)
  • 22. Search API • Just two methods search and trends. • Parameters to create advanced searches: location, language, tweets to/about/from specific users, more. • Retrieve trends, find out what´s hot on twitter programmatically.
  • 23. REST API v.1.1 • 87 methods mirroring nearly all of twitter's user-facing features • Returns XML or JSON for all methods, RSS and ATOM for methods that return timelines. • Supports JSON callbacks, a variety of parameters to slice 'n dice. • Meaningful use of HTTP response codes, plus explanatory error messages in the requested format.
  • 24. Goodies – hotkeys I • Aktionen • Navigation N Neuer Tweet ? Hilfe F Favorisieren J Nächster Tweet R Antworten K Vorheriger Tweet T Retweeten Space Zum Seitenende M Direktnachricht / Suche B Nutzer blockieren . Neue Tweets laden U Nutzer entblocken Enter Details L Alle schließen
  • 25. Goodies – hotkeys II • Timelines GH Startseite GF Favoriten GC Verbinden GL Listen GA Aktivität GM Nachrichten GR Erwähnungen GS Einstellungen GD Entdecken GU Gehe zu GP Profil Benutzer... GF Favoriten

Hinweis der Redaktion

  1. 5-10 minutes:
  2. Stamme aus der Nähe von Nürnberg, hoffe mein Dialekt nehmt ihr mich nicht allzu übelEntwickle SharePoint Lösungen, in letzter Zeit überwiegend in real-time mit Signal-R, knockoutjs…Alegri -> Stand mit Redbull hinweisenDie Dosen in den Goodie bags sind von uns ;)Ja ich arbeite im Moment an einem Blog… der ist noch nicht ganz fertig, aber in naher Zukunft wird es was.
  3. Frage: Wer kennt den User mit den meisten Followern?  Justin Bieber, 36.89 million… Danach kommt Lady Gaga und unter den Top 10 ist auch Barack ObamaWie macht Twitter Geld?Im Jahre 2008 hatte Twitter noch UmsatzproblemeSpäter kam Verkauf von sponsored links dazu.Tweets werden dort plaziert wo sie gesucht werden sollen.0,30 Cent per new FollowerFotograf für DJs (Liveveranstaltungen) hat somit 1300 Follower gewonnen und konnte Businnes startenHeute gibt es Webseiten, die den Wert deinen Twitter Accounts messen http://www.tweetvalue.net/Im Jahre 2014 soll Twitter 1 Millarden US dollar Wert sein.
  4. Eventbenachrichtigungen aus erster Hand: - Rackspace Webinars von Todd-Klindt - Neue Community Veranstaltungen (z.B. Anmeldung für das ShareCamp 2013 oder Usergroup) - David Fowler Entwicklungsstand zu SignalR - Neue ZertifikateHeißer Draht zu Experten: - Sie antworten auch, denn sie bekommen notifications (siehe Bild)An Clipboard malen:News sind schnell in das Unternehmen gebracht: - #yam - Autoforward to Facebook
  5. 5-10 minutes:Open the warmed up team siteRemove the newsfeed and and add the embedded code from twitterAaaaaaaaaaaaaaaaaaaaaaaaaaah omg it‘s not working for SharePoint 2013!!!First do it with notepadShow that the „src="http://platform.twitter.com/widgets.js" mattersShow that type="text/javascript„ mattersShow the central administration  Security  Manage web part securityIn case if you want to refuse people adding curstom javascriptShow dark themehow additional customizing options like width and height- data-theme="dark"
  6. Twitter API besteht aus drei Teilen: - Zwei REST APIs - Erster Blackout test On March 5th, 2013, from around 9:00am to 10:00am PST - Einer Streaming API - Historischer Zukauf von Search APISeit März 2013 version 1. deprecated und version 1.1: - Viele Quellen langen sich nur mit einer Authentifizierung (Oauth) ansteueren - Sogar die Help lässt nur mit Authentifizierung auslesen - Einzige nicht authentifizierungswürdige Quelle ist der Request nach eiem Oauth Token https://dev.twitter.com/docs/api/1/post/oauth/request_tokenSearch API: - Just two methods search and trends. - Parameters to create advanced searches: location, language, tweets to/about/from specific users, more. - Retrieve trends, find out what´s hot on twitter programmaticallyREST API v.1.1: - 87 methods mirroring nearly all of twitter's user-facing features - Returns XML or JSON for all methods, RSS and ATOM for methods that return timelines. - Supports JSON callbacks, a variety of parameters to slice 'n dice. - Meaningful use of HTTP response codes, plus explanatory error messages in the requested format.
  7. Search is focused in relevance and not completeness. Tweets of some users can be missing1000 maximum querySearch API – very limited - only 15 tweets returnedhttps://dev.twitter.com/docs/using-searchWith page=10 and rpp=150REST API v.1.1 - https://dev.twitter.com/docs/api/1.1/get/search/tweets
  8. <iframe width="100%" height="100%​" src="http://192.168.1.100/twittersky" frameborder="0" allowfullscreen></iframe>Zeigenwie man esalsiframeeinbindenkann auf leererWikiseiteZeigen,dass die iframeEinstellungen auf “… don’t permit sein muss
  9. If an application using the REST API says you have been rate limited you can still you the web site or the mobile applications to update your status.Quellen:https://support.twitter.com/articles/15364https://support.twitter.com/articles/160385https://dev.twitter.com/docs/things-every-developer-should-know
  10. An Clipboard malen:If user A launches application Z, and app Z makes 10 calls to user A’s mention timeline in a 15 minute window, then app Z has 5 calls left to make for that windowThen user A launches application X, and app X calls user A’s mention timeline 3 times, then app X has 12 calls left for that windowThe remaining value of calls on application X is isolated from application Z’s, despite the same user A
  11. Quellen:https://dev.twitter.com/docs/using-search
  12. Allows developers to access core dataUpdate time linesUpdate status dataUpdate user informationQuellen:https://dev.twitter.com/docs/api/1.1