PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter

iMasters
iMastersjornalista, web editor, web writer, tradutora (en-pt/pt-en) at iMasters
MICROSERVICES:
UTILIZANDO O TWITTER
COMO PLATAFORMA
@ J C H A H O U D
Juliana Chahoud
Developer Advocate
@jchahoud
@TwitterDevBr
320M+
Active Users
2006 2016
Twitter é global,

aberto e real-time
Twitter é a distância mais curta
entre @voce e seus #interesses
Twitter está presente nos

eventos mundiais
Twitter é o pulso

do planeta
+ meio milhão

Tweets por minuto - record
Como usar serviços do Twitter

nas suas aplicações?
Microserviços:
resolvem um determinado problema,
utilizam interfaces simples e bem definidas
com outros módulos
PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter
Plataforma do Twitter
• Autenticação
• Componentes para websites
• Bots e Aplicações
• Dados
• Customer Service
• Apps Mobile
• mais…
Autenticação
Login
PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter
Componentes
para Websites
PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter
PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter
Twitter para Web
• Timelines embedadas
• Tweet button
• Follow button
• Tweet embedado
• Web Intents
Através de widgets.js
@TwitterAds | Confidential
@chabotc | platform overview
<a class="twitter-grid" href="https://twitter.com/jchahoud/timelines/
712260680670433280">PHPExperience2016</a> <script async src="//platform.twitter.com/widgets.js"
charset="utf-8"></script>
@TwitterAds | Confidential
@chabotc | platform overview
<a href="https://twitter.com/share" class="twitter-share-button" data-via="jchahoud">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=^http:/.test(d.location)? ’http' :
'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+’://platform.twitter.com/
widgets.js'; fjs.parentNode.insertBefore(js,fjs);}}(document,'script', 'twitter-wjs');</script>
@TwitterAds | Confidential
PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter
Vine embeds
{
"version": 1.0,
"type": "video",
"cache_age": 3153600000,
"provider_name": "Vine",
"provider_url": "https://vine.co/",
"author_name": "Andy Piper",
"author_url": "https://vine.co/u/906305068322660352",
"title": "ROBOT is awesome!",
"thumbnail_url": "https://v.cdn.vine.co/r/videos/
9B03025B6B1152337046950596608_3c86180121b.
1.1.13598183071119429391.mp4.jpg?
versionId=RK2EE1Qgw6r0EqeovdUlKOVHWAMhNVdC",
"thumbnail_width": 480,
"thumbnail_height": 480,
"html": "<iframe class="vine-embed" src="https://vine.co/
v/OvjwJIWQV2t/embed/simple" width="600" height="600"
frameborder="0"></iframe><script async src="//
platform.vine.co/static/scripts/embed.js"></script>",
"width": 600,
"height": 600
}
Cards
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@nytimes">
<meta name="twitter:creator" content="@SarahMaslinNir">
<meta name="twitter:title" content="Parade of Fans for Houston’s Funeral">
<meta name="twitter:description" content="The guest list and parade of limousines ..”>
<meta name="twitter:image" content="http://graphics8.nytimes.com/images/2012/02/19/us/
19whitney-span/19whitney-span-article.jpg">
Bots e
Aplicações
DELHI
TRANSPORT
PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter
PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter
Dados
PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter
APIs do Twitter:
o que está acontecendo agora
e o que já aconteceu
Streaming APIs permitem trabalhar
com o que está acontecendo agora
Streaming APIs: o que está
acontecendo agora
POST https://stream.twitter.com/1.1/statuses/filter.json
Retorna Tweets de acordo com critérios.
Data follow

track: #phpexperience2016

locations
language
Streaming APIs: o que está
acontecendo agora
GET https://stream.twitter.com/1.1/statuses/sample.json
Retorna ~1% dos dados, relevantes estatisticamente.
GET https://stream.twitter.com/1.1/statuses/firehose.json
Retorna todos os dados, requer acordo comercial
Streaming APIs: o que está
acontecendo agora
{"created_at":"Sun Dec 01 21:44:59 +0000 2013","id":407264085194330112,"id_str":"407264085194330112","text":"u201c@DM_Minions: The minion mobile! http://t.co/Tq8AQoXcVyu201d shall I get
it, @CourtneyLouu ud83dude0fud83dude18","source":"u003ca href="http://twitter.com/download/iphone" rel="nofollow"u003eTwitter for iPhoneu003c/a
u003e","truncated":false,"in_reply_to_status_id":407263303405023232,"in_reply_to_status_id_str":"407263303405023232","in_reply_to_user_id":
948825632,"in_reply_to_user_id_str":"948825632","in_reply_to_screen_name":"DM_Minions","user":{"id":
404024178,"id_str":"404024178","name":"emilyjade","screen_name":"_emilyjade","location":"","url":null,"description":"'what is essential, is invisible to the
eye'","protected":false,"followers_count":156,"friends_count":287,"listed_count":0,"created_at":"Thu Nov 03 10:18:49 +0000 2011","favourites_count":
379,"utc_offset":null,"time_zone":null,"geo_enabled":true,"verified":false,"statuses_count":
8506,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"EBEBEB","profile_background_image_url":"http://abs.twimg.com/images/themes/theme7/
bg.gif","profile_background_image_url_https":"https://abs.twimg.com/images/themes/theme7/bg.gif","profile_background_tile":false,"profile_image_url":"http://pbs.twimg.com/
profile_images/378800000811908687/bc82e20db7c7812a1f61f72998f948e9_normal.jpeg","profile_image_url_https":"https://pbs.twimg.com/profile_images/378800000811908687/
bc82e20db7c7812a1f61f72998f948e9_normal.jpeg","profile_banner_url":"https://pbs.twimg.com/profile_banners/404024178/
1385914936","profile_link_color":"990000","profile_sidebar_border_color":"DFDFDF","profile_sidebar_fill_color":"F3F3F3","profile_text_color":"333333","profile_use_background_image":true,"def
ault_profile":false,"default_profile_image":false,"following":null,"follow_request_sent":null,"notifications":null},"geo":{"type":"Point","coordinates":
[51.35264663,-1.15710757]},"coordinates":{"type":"Point","coordinates":[-1.15710757,51.35264663]},"place":{"id":"d009bfdb11c20f3e","url":"https://api.twitter.com/1.1/geo/id/
d009bfdb11c20f3e.json","place_type":"city","name":"Basingstoke and Deane","full_name":"Basingstoke and Deane, Hampshire","country_code":"GB","country":"United Kingdom","contained_within":
[],"bounding_box":{"type":"Polygon","coordinates":[[[-1.4601689999999998,51.133537999999994],[-1.4601689999999998,51.383949],[-0.9748119999999999,51.383949],
[-0.9748119999999999,51.133537999999994]]]},"attributes":{}},"contributors":null,"retweet_count":0,"favorite_count":0,"entities":{"hashtags":[],"symbols":[],"urls":[],"user_mentions":
[{"screen_name":"DM_Minions","name":"DespicableMe Minions","id":948825632,"id_str":"948825632","indices":[1,12]},{"screen_name":"CourtneyLouu","name":"coourts","id":
43456930,"id_str":"43456930","indices":[73,86]}],"media":[{"id":407263303325335552,"id_str":"407263303325335552","indices":[33,55],"media_url":"http://pbs.twimg.com/media/
Babj0QzCQAAMrX4.jpg","media_url_https":"https://pbs.twimg.com/media/Babj0QzCQAAMrX4.jpg","url":"http://t.co/Tq8AQoXcVy","display_url":"pic.twitter.com/
Tq8AQoXcVy","expanded_url":"http://twitter.com/DM_Minions/status/407263303405023232/photo/1","type":"photo","sizes":{"small":{"w":339,"h":236,"resize":"fit"},"large":{"w":958,"h":
666,"resize":"fit"},"thumb":{"w":150,"h":150,"resize":"crop"},"medium":{"w":599,"h":417,"resize":"fit"}},"source_status_id":
407263303405023232,"source_status_id_str":"407263303405023232"}]},"favorited":false,"retweeted":false,"possibly_sensitive":false,"filter_level":"medium","lang":"en"}
{"created_at":"Sun Dec 01 21:44:59 +0000 2013","id":407264086347747328,"id_str":"407264086347747328","text":"@DannyArratoon already eaten it but you can bring me another
one?","source":"u003ca href="http://twitter.com/download/iphone" rel="nofollow"u003eTwitter for iPhoneu003c/au003e","truncated":false,"in_reply_to_status_id":
407263944844533761,"in_reply_to_status_id_str":"407263944844533761","in_reply_to_user_id":210579473,"in_reply_to_user_id_str":"210579473","in_reply_to_screen_name":"DannyArratoon","user":
{"id":495068253,"id_str":"495068253","name":"eleanor","screen_name":"ell_eysselinck","location":"london","url":null,"description":null,"protected":false,"followers_count":
430,"friends_count":345,"listed_count":0,"created_at":"Fri Feb 17 15:23:34 +0000 2012","favourites_count":3934,"utc_offset":
0,"time_zone":"London","geo_enabled":true,"verified":false,"statuses_count":
7800,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"000000","profile_background_image_url":"http://a0.twimg.com/profile_background_images/
635582704/nud5dpj44ngj5bgv5k55.jpeg","profile_background_image_url_https":"https://si0.twimg.com/profile_background_images/635582704/
nud5dpj44ngj5bgv5k55.jpeg","profile_background_tile":true,"profile_image_url":"http://pbs.twimg.com/profile_images/378800000812022272/
b0218f45cb51525440be4f5782aaba6b_normal.jpeg","profile_image_url_https":"https://pbs.twimg.com/profile_images/378800000812022272/
b0218f45cb51525440be4f5782aaba6b_normal.jpeg","profile_banner_url":"https://pbs.twimg.com/profile_banners/495068253/
1378837388","profile_link_color":"EB091C","profile_sidebar_border_color":"C0DEED","profile_sidebar_fill_color":"DDEEF6","profile_text_color":"333333","profile_use_background_image":true,"def
ault_profile":false,"default_profile_image":false,"following":null,"follow_request_sent":null,"notifications":null},"geo":{"type":"Point","coordinates":
[51.37097685,-0.21992044]},"coordinates":{"type":"Point","coordinates":[-0.21992044,51.37097685]},"place":{"id":"8840213b5fc1032a","url":"https://api.twitter.com/1.1/geo/id/
8840213b5fc1032a.json","place_type":"city","name":"Sutton","full_name":"Sutton, London","country_code":"GB","country":"United Kingdom","contained_within":[],"bounding_box":
{"type":"Polygon","coordinates":[[[-0.24586899999999998,51.321324999999995],[-0.24586899999999998,51.393378999999996],[-0.117306,51.393378999999996],
[-0.117306,51.321324999999995]]]},"attributes":{}},"contributors":null,"retweet_count":0,"favorite_count":0,"entities":{"hashtags":[],"symbols":[],"urls":[],"user_mentions":
[{"screen_name":"DannyArratoon","name":"Danny","id":210579473,"id_str":"210579473","indices":[0,14]}]},"favorited":false,"retweeted":false,"filter_level":"medium","lang":"en"}
{"created_at":"Sun Dec 01 21:44:59 +0000 2013","id":407264087085953025,"id_str":"407264087085953025","text":"@brontemaria22 #firstin","source":"u003ca href="http://twitter.com/download
/iphone" rel="nofollow"u003eTwitter for iPhoneu003c/au003e","truncated":false,"in_reply_to_status_id":
407262865251643392,"in_reply_to_status_id_str":"407262865251643392","in_reply_to_user_id":771468884,"in_reply_to_user_id_str":"771468884","in_reply_to_screen_name":"brontemaria22","user":
{"id":442104599,"id_str":"442104599","name":"zolf","screen_name":"FleurMarie32","location":"","url":null,"description":null,"protected":false,"followers_count":360,"friends_count":
238,"listed_count":0,"created_at":"Tue Dec 20 19:13:40 +0000 2011","favourites_count":563,"utc_offset":null,"time_zone":null,"geo_enabled":true,"verified":false,"statuses_count":
Anatomia de um Tweet
{
"created_at": "Wed Oct 02 15:53:43 +0000 2013",
"id": 385432417126739968,
"id_str": "385432417126739968",
"text": "Learn more about the powerful #Linux container engine @docker in this video intro with @solomonstre -
http://t.co/QJLdA1762Y @TwitterOSS",
"source": "web",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 1665823832,
"id_str": "1665823832",
"name": "Twitter University",
"screen_name": "university",
"location": "",
"description": "Building a culture of learning for @TwitterEng and the world at large",
"url": "http://t.co/c8IHJLE1Y8",
"entities": {
"url": {
"urls": [{
"url": "http://t.co/c8IHJLE1Y8",
"expanded_url": "http://youtube.com/twitteruniversity",
"display_url": "youtube.com/twitteruniversu2026",
REST APIs permite executar ações e
acessar o que já aconteceu
Twitter API
Mais de 100 endpoints
• Obter dados do Twitter
‣ GET /search/tweets

• Engajar usuários socialmente
‣ POST /statuses/update
REST APIs permite executar ações
e acessar o que já aconteceu
Tweets & Media GET statuses/lookup
POST statuses/update
POST media/upload
Timelines GET statuses/home_timeline
GET statuses/user_timeline
GET statuses/mentions_timeline
Search GET tweets/search
Following GET friends/list
Mais: Users, Favorites, Direct Messages, Block/Mute, Followers, Lists, Trends, Geo…
Customer
Service
Mais tweets
Tweets diretos para empresas B2C
PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter
PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter
Apps Mobile
PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter
CRASHLYTICS DIGITS MOPUB TWITTER KITANSWERS
Recursos úteis
PHP Libraries
Links
• https://dev.twitter.com/
• https://apps.twitter.com/
• https://github.com/twitterdev
#Obrigada
@jchahoud
@TwitterDevBr
1 of 51

Recommended

Gab2015 samir arezki_api management by
Gab2015 samir arezki_api managementGab2015 samir arezki_api management
Gab2015 samir arezki_api managementVincent Thavonekham-Pro
483 views34 slides
API Introduction - API Management Workshop Munich from Ronnie Mitra by
API Introduction - API Management Workshop Munich from Ronnie MitraAPI Introduction - API Management Workshop Munich from Ronnie Mitra
API Introduction - API Management Workshop Munich from Ronnie MitraCA API Management
2.2K views239 slides
API Management - Why it matters! by
API Management - Why it matters!API Management - Why it matters!
API Management - Why it matters!Sven Bernhardt
3.1K views43 slides
Architecting an Enterprise API Management Strategy by
Architecting an Enterprise API Management StrategyArchitecting an Enterprise API Management Strategy
Architecting an Enterprise API Management StrategyWSO2
18.1K views39 slides
Workshop: API Management by
Workshop: API ManagementWorkshop: API Management
Workshop: API ManagementWSO2
2.5K views53 slides
SOA and API Convergence Strategy and Tactics by
SOA and API Convergence Strategy and TacticsSOA and API Convergence Strategy and Tactics
SOA and API Convergence Strategy and TacticsChris Haddad
6.4K views24 slides

More Related Content

What's hot

Best Practices: The Role of API Management by
Best Practices: The Role of API ManagementBest Practices: The Role of API Management
Best Practices: The Role of API ManagementAkana
2.5K views28 slides
Alexio Cassani - Start-up & API Economy: opportunità e benefici | Codemotion ... by
Alexio Cassani - Start-up & API Economy: opportunità e benefici | Codemotion ...Alexio Cassani - Start-up & API Economy: opportunità e benefici | Codemotion ...
Alexio Cassani - Start-up & API Economy: opportunità e benefici | Codemotion ...Codemotion
913 views28 slides
apidays LIVE JAKARTA - Event Driven APIs by Phil Scanlon by
apidays LIVE JAKARTA - Event Driven APIs by Phil Scanlonapidays LIVE JAKARTA - Event Driven APIs by Phil Scanlon
apidays LIVE JAKARTA - Event Driven APIs by Phil Scanlonapidays
1.5K views33 slides
A high profile project with Symfony and API Platform: beIN SPORTS by
A high profile project with Symfony and API Platform: beIN SPORTSA high profile project with Symfony and API Platform: beIN SPORTS
A high profile project with Symfony and API Platform: beIN SPORTSSmile I.T is open
61K views45 slides
Entity Linking and REST Patterns in SOA by
Entity Linking and REST Patterns in SOA Entity Linking and REST Patterns in SOA
Entity Linking and REST Patterns in SOA WSO2
4.1K views29 slides
Open API and API Management - Introduction and Comparison of Products: TIBCO ... by
Open API and API Management - Introduction and Comparison of Products: TIBCO ...Open API and API Management - Introduction and Comparison of Products: TIBCO ...
Open API and API Management - Introduction and Comparison of Products: TIBCO ...Kai Wähner
30.2K views43 slides

What's hot(20)

Best Practices: The Role of API Management by Akana
Best Practices: The Role of API ManagementBest Practices: The Role of API Management
Best Practices: The Role of API Management
Akana2.5K views
Alexio Cassani - Start-up & API Economy: opportunità e benefici | Codemotion ... by Codemotion
Alexio Cassani - Start-up & API Economy: opportunità e benefici | Codemotion ...Alexio Cassani - Start-up & API Economy: opportunità e benefici | Codemotion ...
Alexio Cassani - Start-up & API Economy: opportunità e benefici | Codemotion ...
Codemotion913 views
apidays LIVE JAKARTA - Event Driven APIs by Phil Scanlon by apidays
apidays LIVE JAKARTA - Event Driven APIs by Phil Scanlonapidays LIVE JAKARTA - Event Driven APIs by Phil Scanlon
apidays LIVE JAKARTA - Event Driven APIs by Phil Scanlon
apidays1.5K views
A high profile project with Symfony and API Platform: beIN SPORTS by Smile I.T is open
A high profile project with Symfony and API Platform: beIN SPORTSA high profile project with Symfony and API Platform: beIN SPORTS
A high profile project with Symfony and API Platform: beIN SPORTS
Smile I.T is open61K views
Entity Linking and REST Patterns in SOA by WSO2
Entity Linking and REST Patterns in SOA Entity Linking and REST Patterns in SOA
Entity Linking and REST Patterns in SOA
WSO24.1K views
Open API and API Management - Introduction and Comparison of Products: TIBCO ... by Kai Wähner
Open API and API Management - Introduction and Comparison of Products: TIBCO ...Open API and API Management - Introduction and Comparison of Products: TIBCO ...
Open API and API Management - Introduction and Comparison of Products: TIBCO ...
Kai Wähner30.2K views
GlueCon 2019: Beyond REST - Moving to Event-Based APIs and Streaming by LaunchAny
GlueCon 2019: Beyond REST - Moving to Event-Based APIs and StreamingGlueCon 2019: Beyond REST - Moving to Event-Based APIs and Streaming
GlueCon 2019: Beyond REST - Moving to Event-Based APIs and Streaming
LaunchAny794 views
Digital Nirvana with HANA Cloud Platform by Darren Crowder
Digital Nirvana with HANA Cloud Platform Digital Nirvana with HANA Cloud Platform
Digital Nirvana with HANA Cloud Platform
Darren Crowder320 views
Takeaways from API Security Breaches Webinar by CA API Management
Takeaways from API Security Breaches WebinarTakeaways from API Security Breaches Webinar
Takeaways from API Security Breaches Webinar
CA API Management2.4K views
API Management: Rise of the Planet of the Apps (2016 09-26 - Porto.Data) by Sandro Pereira
API Management: Rise of the Planet of the Apps (2016 09-26 - Porto.Data)API Management: Rise of the Planet of the Apps (2016 09-26 - Porto.Data)
API Management: Rise of the Planet of the Apps (2016 09-26 - Porto.Data)
Sandro Pereira353 views
API Management Within a Microservices Architecture by Nadeesha Gamage
API Management Within a Microservices Architecture API Management Within a Microservices Architecture
API Management Within a Microservices Architecture
Nadeesha Gamage332 views
Lean Method for Building Good APIs for Business – APIOps Cycles by Nordic APIs
Lean Method for Building Good APIs for Business – APIOps CyclesLean Method for Building Good APIs for Business – APIOps Cycles
Lean Method for Building Good APIs for Business – APIOps Cycles
Nordic APIs308 views
API Marketing: First Comes Usability, Then Discoverability by Bill Doerrfeld
API Marketing: First Comes Usability, Then DiscoverabilityAPI Marketing: First Comes Usability, Then Discoverability
API Marketing: First Comes Usability, Then Discoverability
Bill Doerrfeld731 views
Api architectures for the modern enterprise by CA API Management
Api architectures for the modern enterpriseApi architectures for the modern enterprise
Api architectures for the modern enterprise
CA API Management12.9K views
ESB vs API management by AdroitLogic
ESB vs API managementESB vs API management
ESB vs API management
AdroitLogic8.8K views
6 Reasons Why APIs Are Reshaping Your Business by Fabernovel
6 Reasons Why APIs Are Reshaping Your Business6 Reasons Why APIs Are Reshaping Your Business
6 Reasons Why APIs Are Reshaping Your Business
Fabernovel110.4K views

Viewers also liked

Fighting Cancer With Theater- The Damon Runyon Foundation by
Fighting Cancer With Theater- The Damon Runyon FoundationFighting Cancer With Theater- The Damon Runyon Foundation
Fighting Cancer With Theater- The Damon Runyon FoundationSteven Sands
221 views12 slides
Cicatrices tras cirugía by
Cicatrices tras cirugíaCicatrices tras cirugía
Cicatrices tras cirugíaCésar Pablo Ramírez Plaza
336 views27 slides
Term 1 sight words powerpoint tg 2012 by
Term 1 sight words powerpoint tg 2012Term 1 sight words powerpoint tg 2012
Term 1 sight words powerpoint tg 2012gavinnancarrow
399 views36 slides
Jeff_Land_Resume_Rev0 (002) by
Jeff_Land_Resume_Rev0 (002)Jeff_Land_Resume_Rev0 (002)
Jeff_Land_Resume_Rev0 (002)Jeff Land
132 views3 slides
Julien-Fortin-resume by
Julien-Fortin-resumeJulien-Fortin-resume
Julien-Fortin-resumevisual_resume
215 views1 slide
krishna-kumar by
krishna-kumarkrishna-kumar
krishna-kumarKrishna Kumar
660 views1 slide

Viewers also liked(16)

Fighting Cancer With Theater- The Damon Runyon Foundation by Steven Sands
Fighting Cancer With Theater- The Damon Runyon FoundationFighting Cancer With Theater- The Damon Runyon Foundation
Fighting Cancer With Theater- The Damon Runyon Foundation
Steven Sands221 views
Term 1 sight words powerpoint tg 2012 by gavinnancarrow
Term 1 sight words powerpoint tg 2012Term 1 sight words powerpoint tg 2012
Term 1 sight words powerpoint tg 2012
gavinnancarrow399 views
Jeff_Land_Resume_Rev0 (002) by Jeff Land
Jeff_Land_Resume_Rev0 (002)Jeff_Land_Resume_Rev0 (002)
Jeff_Land_Resume_Rev0 (002)
Jeff Land132 views
Y1 Ff spelling powerpoint sh 2012 by gavinnancarrow
Y1 Ff spelling powerpoint sh 2012Y1 Ff spelling powerpoint sh 2012
Y1 Ff spelling powerpoint sh 2012
gavinnancarrow1.1K views
Certification[1] by Alvin Tan
Certification[1]Certification[1]
Certification[1]
Alvin Tan88 views
Physical Security, IoT & The Role of Open Standards by Memoori
Physical Security, IoT & The Role of Open StandardsPhysical Security, IoT & The Role of Open Standards
Physical Security, IoT & The Role of Open Standards
Memoori588 views
Y1 Igh spelling ppt sh 2012 by gavinnancarrow
Y1 Igh spelling ppt sh 2012Y1 Igh spelling ppt sh 2012
Y1 Igh spelling ppt sh 2012
gavinnancarrow3.9K views
ribozymes by rukkurugma
ribozymesribozymes
ribozymes
rukkurugma3.9K views
Resume - December 2016 by Alan Fraser
Resume - December 2016Resume - December 2016
Resume - December 2016
Alan Fraser260 views

Similar to PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter

Social Developers London update for Twitter Developers by
Social Developers London update for Twitter Developers Social Developers London update for Twitter Developers
Social Developers London update for Twitter Developers Angus Fox
803 views25 slides
Twitter API 2.0 by
Twitter API 2.0Twitter API 2.0
Twitter API 2.0Alex Payne
2.7K views21 slides
Connecting to the Pulse of the Planet with the Twitter Platform by
Connecting to the Pulse of the Planet with the Twitter PlatformConnecting to the Pulse of the Planet with the Twitter Platform
Connecting to the Pulse of the Planet with the Twitter PlatformAndy Piper
11.1K views54 slides
Twet by
TwetTwet
TwetRadu Sarghie
2K views15 slides
Seattle bot + Twitter data prezo by
Seattle bot + Twitter data prezoSeattle bot + Twitter data prezo
Seattle bot + Twitter data prezoHarrison Neff
139 views24 slides
Mz twitter-1.1-sdl by
Mz twitter-1.1-sdlMz twitter-1.1-sdl
Mz twitter-1.1-sdlAngus Fox
867 views28 slides

Similar to PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter(20)

Social Developers London update for Twitter Developers by Angus Fox
Social Developers London update for Twitter Developers Social Developers London update for Twitter Developers
Social Developers London update for Twitter Developers
Angus Fox803 views
Twitter API 2.0 by Alex Payne
Twitter API 2.0Twitter API 2.0
Twitter API 2.0
Alex Payne2.7K views
Connecting to the Pulse of the Planet with the Twitter Platform by Andy Piper
Connecting to the Pulse of the Planet with the Twitter PlatformConnecting to the Pulse of the Planet with the Twitter Platform
Connecting to the Pulse of the Planet with the Twitter Platform
Andy Piper11.1K views
Seattle bot + Twitter data prezo by Harrison Neff
Seattle bot + Twitter data prezoSeattle bot + Twitter data prezo
Seattle bot + Twitter data prezo
Harrison Neff139 views
Mz twitter-1.1-sdl by Angus Fox
Mz twitter-1.1-sdlMz twitter-1.1-sdl
Mz twitter-1.1-sdl
Angus Fox867 views
Social media analysis in R using twitter API by Mohd Shadab Alam
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 Alam4.7K views
Services, Apps and the API Powered Web by Steven Willmott
Services, Apps and the API Powered WebServices, Apps and the API Powered Web
Services, Apps and the API Powered Web
Steven Willmott1.2K views
A SOLUÇÃO DO TWITTER PARA DESENVOLVIMENTO DE MELHORES APPS by Juliana Chahoud
A SOLUÇÃO DO TWITTER PARA DESENVOLVIMENTO DE MELHORES APPSA SOLUÇÃO DO TWITTER PARA DESENVOLVIMENTO DE MELHORES APPS
A SOLUÇÃO DO TWITTER PARA DESENVOLVIMENTO DE MELHORES APPS
Juliana Chahoud640 views
Twitter sm by Tim Brice
Twitter smTwitter sm
Twitter sm
Tim Brice951 views
Twitter Apps for Business by Roderick Low
Twitter Apps for BusinessTwitter Apps for Business
Twitter Apps for Business
Roderick Low373 views
Bootstrapping an App for Launch by Craig Phares
Bootstrapping an App for LaunchBootstrapping an App for Launch
Bootstrapping an App for Launch
Craig Phares252 views
CSE5656 Complex Networks - Gathering Data from Twitter by Marcello Tomasini
CSE5656 Complex Networks - Gathering Data from TwitterCSE5656 Complex Networks - Gathering Data from Twitter
CSE5656 Complex Networks - Gathering Data from Twitter
Marcello Tomasini320 views
HackPR at UPR in Mayaguez - September 2015 by Jonathan Bulava
HackPR at UPR in Mayaguez - September 2015HackPR at UPR in Mayaguez - September 2015
HackPR at UPR in Mayaguez - September 2015
Jonathan Bulava377 views
R.A.P. (Rely on Android Platform) by Aditium
R.A.P. (Rely on Android Platform)R.A.P. (Rely on Android Platform)
R.A.P. (Rely on Android Platform)
Aditium1.8K views
Free social media resources by Vivastream
Free social media resourcesFree social media resources
Free social media resources
Vivastream1.6K views
Free Social Media Resources by Will Byrne
Free Social Media ResourcesFree Social Media Resources
Free Social Media Resources
Will Byrne294 views

More from iMasters

O que você precisa saber para modelar bancos de dados NoSQL - Dani Monteiro by
O que você precisa saber para modelar bancos de dados NoSQL - Dani MonteiroO que você precisa saber para modelar bancos de dados NoSQL - Dani Monteiro
O que você precisa saber para modelar bancos de dados NoSQL - Dani MonteiroiMasters
1.4K views40 slides
Postgres: wanted, beloved or dreaded? - Fabio Telles by
Postgres: wanted, beloved or dreaded? - Fabio TellesPostgres: wanted, beloved or dreaded? - Fabio Telles
Postgres: wanted, beloved or dreaded? - Fabio TellesiMasters
603 views51 slides
Por que minha query esta lenta? - Suellen Moraes by
Por que minha query esta lenta? - Suellen MoraesPor que minha query esta lenta? - Suellen Moraes
Por que minha query esta lenta? - Suellen MoraesiMasters
370 views12 slides
Relato das trincheiras: o dia a dia de uma consultoria de banco de dados - Ig... by
Relato das trincheiras: o dia a dia de uma consultoria de banco de dados - Ig...Relato das trincheiras: o dia a dia de uma consultoria de banco de dados - Ig...
Relato das trincheiras: o dia a dia de uma consultoria de banco de dados - Ig...iMasters
298 views9 slides
ORMs heróis ou vilões dentro da arquitetura de dados? - Otávio gonçalves by
ORMs heróis ou vilões dentro da arquitetura de dados? - Otávio gonçalvesORMs heróis ou vilões dentro da arquitetura de dados? - Otávio gonçalves
ORMs heróis ou vilões dentro da arquitetura de dados? - Otávio gonçalvesiMasters
324 views31 slides
SQL e NoSQL trabalhando juntos: uma comparação para obter o melhor de ambos -... by
SQL e NoSQL trabalhando juntos: uma comparação para obter o melhor de ambos -...SQL e NoSQL trabalhando juntos: uma comparação para obter o melhor de ambos -...
SQL e NoSQL trabalhando juntos: uma comparação para obter o melhor de ambos -...iMasters
1.7K views52 slides

More from iMasters(20)

O que você precisa saber para modelar bancos de dados NoSQL - Dani Monteiro by iMasters
O que você precisa saber para modelar bancos de dados NoSQL - Dani MonteiroO que você precisa saber para modelar bancos de dados NoSQL - Dani Monteiro
O que você precisa saber para modelar bancos de dados NoSQL - Dani Monteiro
iMasters1.4K views
Postgres: wanted, beloved or dreaded? - Fabio Telles by iMasters
Postgres: wanted, beloved or dreaded? - Fabio TellesPostgres: wanted, beloved or dreaded? - Fabio Telles
Postgres: wanted, beloved or dreaded? - Fabio Telles
iMasters603 views
Por que minha query esta lenta? - Suellen Moraes by iMasters
Por que minha query esta lenta? - Suellen MoraesPor que minha query esta lenta? - Suellen Moraes
Por que minha query esta lenta? - Suellen Moraes
iMasters370 views
Relato das trincheiras: o dia a dia de uma consultoria de banco de dados - Ig... by iMasters
Relato das trincheiras: o dia a dia de uma consultoria de banco de dados - Ig...Relato das trincheiras: o dia a dia de uma consultoria de banco de dados - Ig...
Relato das trincheiras: o dia a dia de uma consultoria de banco de dados - Ig...
iMasters298 views
ORMs heróis ou vilões dentro da arquitetura de dados? - Otávio gonçalves by iMasters
ORMs heróis ou vilões dentro da arquitetura de dados? - Otávio gonçalvesORMs heróis ou vilões dentro da arquitetura de dados? - Otávio gonçalves
ORMs heróis ou vilões dentro da arquitetura de dados? - Otávio gonçalves
iMasters324 views
SQL e NoSQL trabalhando juntos: uma comparação para obter o melhor de ambos -... by iMasters
SQL e NoSQL trabalhando juntos: uma comparação para obter o melhor de ambos -...SQL e NoSQL trabalhando juntos: uma comparação para obter o melhor de ambos -...
SQL e NoSQL trabalhando juntos: uma comparação para obter o melhor de ambos -...
iMasters1.7K views
Arquitetando seus dados na prática para a LGPD - Alessandra Martins by iMasters
Arquitetando seus dados na prática para a LGPD - Alessandra MartinsArquitetando seus dados na prática para a LGPD - Alessandra Martins
Arquitetando seus dados na prática para a LGPD - Alessandra Martins
iMasters3.3K views
O papel do DBA no mundo de ciência de dados e machine learning - Mauro Pichil... by iMasters
O papel do DBA no mundo de ciência de dados e machine learning - Mauro Pichil...O papel do DBA no mundo de ciência de dados e machine learning - Mauro Pichil...
O papel do DBA no mundo de ciência de dados e machine learning - Mauro Pichil...
iMasters287 views
Desenvolvimento Mobile Híbrido, Nativo ou Web: Quando usá-los - Juliana Chahoud by iMasters
Desenvolvimento Mobile Híbrido, Nativo ou Web: Quando usá-los - Juliana ChahoudDesenvolvimento Mobile Híbrido, Nativo ou Web: Quando usá-los - Juliana Chahoud
Desenvolvimento Mobile Híbrido, Nativo ou Web: Quando usá-los - Juliana Chahoud
iMasters950 views
Use MDD e faça as máquinas trabalharem para você - Andreza Leite by iMasters
 Use MDD e faça as máquinas trabalharem para você - Andreza Leite Use MDD e faça as máquinas trabalharem para você - Andreza Leite
Use MDD e faça as máquinas trabalharem para você - Andreza Leite
iMasters682 views
Entendendo os porquês do seu servidor - Talita Bernardes by iMasters
Entendendo os porquês do seu servidor - Talita BernardesEntendendo os porquês do seu servidor - Talita Bernardes
Entendendo os porquês do seu servidor - Talita Bernardes
iMasters544 views
Backend performático além do "coloca mais máquina lá" - Diana Arnos by iMasters
Backend performático além do "coloca mais máquina lá" - Diana ArnosBackend performático além do "coloca mais máquina lá" - Diana Arnos
Backend performático além do "coloca mais máquina lá" - Diana Arnos
iMasters477 views
Dicas para uma maior performance em APIs REST - Renato Groffe by iMasters
Dicas para uma maior performance em APIs REST - Renato GroffeDicas para uma maior performance em APIs REST - Renato Groffe
Dicas para uma maior performance em APIs REST - Renato Groffe
iMasters595 views
7 dicas de desempenho que equivalem por 21 - Danielle Monteiro by iMasters
7 dicas de desempenho que equivalem por 21 - Danielle Monteiro7 dicas de desempenho que equivalem por 21 - Danielle Monteiro
7 dicas de desempenho que equivalem por 21 - Danielle Monteiro
iMasters475 views
Quem se importa com acessibilidade Web? - Mauricio Maujor by iMasters
Quem se importa com acessibilidade Web? - Mauricio MaujorQuem se importa com acessibilidade Web? - Mauricio Maujor
Quem se importa com acessibilidade Web? - Mauricio Maujor
iMasters480 views
Service Mesh com Istio e Kubernetes - Wellington Figueira da Silva by iMasters
Service Mesh com Istio e Kubernetes - Wellington Figueira da SilvaService Mesh com Istio e Kubernetes - Wellington Figueira da Silva
Service Mesh com Istio e Kubernetes - Wellington Figueira da Silva
iMasters604 views
Erros: Como eles vivem, se alimentam e se reproduzem? - Augusto Pascutti by iMasters
Erros: Como eles vivem, se alimentam e se reproduzem? - Augusto PascuttiErros: Como eles vivem, se alimentam e se reproduzem? - Augusto Pascutti
Erros: Como eles vivem, se alimentam e se reproduzem? - Augusto Pascutti
iMasters559 views
Elasticidade e engenharia de banco de dados para alta performance - Rubens G... by iMasters
Elasticidade e engenharia de banco de dados para alta performance  - Rubens G...Elasticidade e engenharia de banco de dados para alta performance  - Rubens G...
Elasticidade e engenharia de banco de dados para alta performance - Rubens G...
iMasters569 views
Construindo aplicações mais confiantes - Carolina Karklis by iMasters
Construindo aplicações mais confiantes - Carolina KarklisConstruindo aplicações mais confiantes - Carolina Karklis
Construindo aplicações mais confiantes - Carolina Karklis
iMasters477 views
Monitoramento de Aplicações - Felipe Regalgo by iMasters
Monitoramento de Aplicações - Felipe RegalgoMonitoramento de Aplicações - Felipe Regalgo
Monitoramento de Aplicações - Felipe Regalgo
iMasters709 views

Recently uploaded

Retail Store Scavenger Hunt.pptx by
Retail Store Scavenger Hunt.pptxRetail Store Scavenger Hunt.pptx
Retail Store Scavenger Hunt.pptxjmurphy154
52 views10 slides
MIXING OF PHARMACEUTICALS.pptx by
MIXING OF PHARMACEUTICALS.pptxMIXING OF PHARMACEUTICALS.pptx
MIXING OF PHARMACEUTICALS.pptxAnupkumar Sharma
121 views35 slides
Creative Restart 2023: Atila Martins - Craft: A Necessity, Not a Choice by
Creative Restart 2023: Atila Martins - Craft: A Necessity, Not a ChoiceCreative Restart 2023: Atila Martins - Craft: A Necessity, Not a Choice
Creative Restart 2023: Atila Martins - Craft: A Necessity, Not a ChoiceTaste
45 views50 slides
Six Sigma Concept by Sahil Srivastava.pptx by
Six Sigma Concept by Sahil Srivastava.pptxSix Sigma Concept by Sahil Srivastava.pptx
Six Sigma Concept by Sahil Srivastava.pptxSahil Srivastava
44 views11 slides
Volf work.pdf by
Volf work.pdfVolf work.pdf
Volf work.pdfMariaKenney3
89 views43 slides
A Guide to Applying for the Wells Mountain Initiative Scholarship 2023 by
A Guide to Applying for the Wells Mountain Initiative Scholarship 2023A Guide to Applying for the Wells Mountain Initiative Scholarship 2023
A Guide to Applying for the Wells Mountain Initiative Scholarship 2023Excellence Foundation for South Sudan
82 views26 slides

Recently uploaded(20)

Retail Store Scavenger Hunt.pptx by jmurphy154
Retail Store Scavenger Hunt.pptxRetail Store Scavenger Hunt.pptx
Retail Store Scavenger Hunt.pptx
jmurphy15452 views
Creative Restart 2023: Atila Martins - Craft: A Necessity, Not a Choice by Taste
Creative Restart 2023: Atila Martins - Craft: A Necessity, Not a ChoiceCreative Restart 2023: Atila Martins - Craft: A Necessity, Not a Choice
Creative Restart 2023: Atila Martins - Craft: A Necessity, Not a Choice
Taste45 views
Six Sigma Concept by Sahil Srivastava.pptx by Sahil Srivastava
Six Sigma Concept by Sahil Srivastava.pptxSix Sigma Concept by Sahil Srivastava.pptx
Six Sigma Concept by Sahil Srivastava.pptx
Sahil Srivastava44 views
11.30.23A Poverty and Inequality in America.pptx by mary850239
11.30.23A Poverty and Inequality in America.pptx11.30.23A Poverty and Inequality in America.pptx
11.30.23A Poverty and Inequality in America.pptx
mary850239130 views
Narration lesson plan by TARIQ KHAN
Narration lesson planNarration lesson plan
Narration lesson plan
TARIQ KHAN75 views
ANGULARJS.pdf by ArthyR3
ANGULARJS.pdfANGULARJS.pdf
ANGULARJS.pdf
ArthyR351 views
The Future of Micro-credentials: Is Small Really Beautiful? by Mark Brown
The Future of Micro-credentials:  Is Small Really Beautiful?The Future of Micro-credentials:  Is Small Really Beautiful?
The Future of Micro-credentials: Is Small Really Beautiful?
Mark Brown75 views
Guess Papers ADC 1, Karachi University by Khalid Aziz
Guess Papers ADC 1, Karachi UniversityGuess Papers ADC 1, Karachi University
Guess Papers ADC 1, Karachi University
Khalid Aziz99 views
Education of marginalized and socially disadvantages segments.pptx by GarimaBhati5
Education of marginalized and socially disadvantages segments.pptxEducation of marginalized and socially disadvantages segments.pptx
Education of marginalized and socially disadvantages segments.pptx
GarimaBhati543 views
Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37 by MysoreMuleSoftMeetup
Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37
Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37
INT-244 Topic 6b Confucianism by S Meyer
INT-244 Topic 6b ConfucianismINT-244 Topic 6b Confucianism
INT-244 Topic 6b Confucianism
S Meyer45 views
Career Building in AI - Technologies, Trends and Opportunities by WebStackAcademy
Career Building in AI - Technologies, Trends and OpportunitiesCareer Building in AI - Technologies, Trends and Opportunities
Career Building in AI - Technologies, Trends and Opportunities
WebStackAcademy45 views

PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter

  • 1. MICROSERVICES: UTILIZANDO O TWITTER COMO PLATAFORMA @ J C H A H O U D
  • 5. Twitter é a distância mais curta entre @voce e seus #interesses
  • 6. Twitter está presente nos
 eventos mundiais
  • 7. Twitter é o pulso
 do planeta
  • 8. + meio milhão
 Tweets por minuto - record
  • 9. Como usar serviços do Twitter
 nas suas aplicações?
  • 10. Microserviços: resolvem um determinado problema, utilizam interfaces simples e bem definidas com outros módulos
  • 12. Plataforma do Twitter • Autenticação • Componentes para websites • Bots e Aplicações • Dados • Customer Service • Apps Mobile • mais…
  • 14. Login
  • 19. Twitter para Web • Timelines embedadas • Tweet button • Follow button • Tweet embedado • Web Intents Através de widgets.js
  • 20. @TwitterAds | Confidential @chabotc | platform overview <a class="twitter-grid" href="https://twitter.com/jchahoud/timelines/ 712260680670433280">PHPExperience2016</a> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
  • 21. @TwitterAds | Confidential @chabotc | platform overview <a href="https://twitter.com/share" class="twitter-share-button" data-via="jchahoud">Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=^http:/.test(d.location)? ’http' : 'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+’://platform.twitter.com/ widgets.js'; fjs.parentNode.insertBefore(js,fjs);}}(document,'script', 'twitter-wjs');</script>
  • 24. Vine embeds { "version": 1.0, "type": "video", "cache_age": 3153600000, "provider_name": "Vine", "provider_url": "https://vine.co/", "author_name": "Andy Piper", "author_url": "https://vine.co/u/906305068322660352", "title": "ROBOT is awesome!", "thumbnail_url": "https://v.cdn.vine.co/r/videos/ 9B03025B6B1152337046950596608_3c86180121b. 1.1.13598183071119429391.mp4.jpg? versionId=RK2EE1Qgw6r0EqeovdUlKOVHWAMhNVdC", "thumbnail_width": 480, "thumbnail_height": 480, "html": "<iframe class="vine-embed" src="https://vine.co/ v/OvjwJIWQV2t/embed/simple" width="600" height="600" frameborder="0"></iframe><script async src="// platform.vine.co/static/scripts/embed.js"></script>", "width": 600, "height": 600 }
  • 25. Cards <meta name="twitter:card" content="summary"> <meta name="twitter:site" content="@nytimes"> <meta name="twitter:creator" content="@SarahMaslinNir"> <meta name="twitter:title" content="Parade of Fans for Houston’s Funeral"> <meta name="twitter:description" content="The guest list and parade of limousines ..”> <meta name="twitter:image" content="http://graphics8.nytimes.com/images/2012/02/19/us/ 19whitney-span/19whitney-span-article.jpg">
  • 30. Dados
  • 32. APIs do Twitter: o que está acontecendo agora e o que já aconteceu
  • 33. Streaming APIs permitem trabalhar com o que está acontecendo agora
  • 34. Streaming APIs: o que está acontecendo agora POST https://stream.twitter.com/1.1/statuses/filter.json Retorna Tweets de acordo com critérios. Data follow
 track: #phpexperience2016
 locations language
  • 35. Streaming APIs: o que está acontecendo agora GET https://stream.twitter.com/1.1/statuses/sample.json Retorna ~1% dos dados, relevantes estatisticamente. GET https://stream.twitter.com/1.1/statuses/firehose.json Retorna todos os dados, requer acordo comercial
  • 36. Streaming APIs: o que está acontecendo agora {"created_at":"Sun Dec 01 21:44:59 +0000 2013","id":407264085194330112,"id_str":"407264085194330112","text":"u201c@DM_Minions: The minion mobile! http://t.co/Tq8AQoXcVyu201d shall I get it, @CourtneyLouu ud83dude0fud83dude18","source":"u003ca href="http://twitter.com/download/iphone" rel="nofollow"u003eTwitter for iPhoneu003c/a u003e","truncated":false,"in_reply_to_status_id":407263303405023232,"in_reply_to_status_id_str":"407263303405023232","in_reply_to_user_id": 948825632,"in_reply_to_user_id_str":"948825632","in_reply_to_screen_name":"DM_Minions","user":{"id": 404024178,"id_str":"404024178","name":"emilyjade","screen_name":"_emilyjade","location":"","url":null,"description":"'what is essential, is invisible to the eye'","protected":false,"followers_count":156,"friends_count":287,"listed_count":0,"created_at":"Thu Nov 03 10:18:49 +0000 2011","favourites_count": 379,"utc_offset":null,"time_zone":null,"geo_enabled":true,"verified":false,"statuses_count": 8506,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"EBEBEB","profile_background_image_url":"http://abs.twimg.com/images/themes/theme7/ bg.gif","profile_background_image_url_https":"https://abs.twimg.com/images/themes/theme7/bg.gif","profile_background_tile":false,"profile_image_url":"http://pbs.twimg.com/ profile_images/378800000811908687/bc82e20db7c7812a1f61f72998f948e9_normal.jpeg","profile_image_url_https":"https://pbs.twimg.com/profile_images/378800000811908687/ bc82e20db7c7812a1f61f72998f948e9_normal.jpeg","profile_banner_url":"https://pbs.twimg.com/profile_banners/404024178/ 1385914936","profile_link_color":"990000","profile_sidebar_border_color":"DFDFDF","profile_sidebar_fill_color":"F3F3F3","profile_text_color":"333333","profile_use_background_image":true,"def ault_profile":false,"default_profile_image":false,"following":null,"follow_request_sent":null,"notifications":null},"geo":{"type":"Point","coordinates": [51.35264663,-1.15710757]},"coordinates":{"type":"Point","coordinates":[-1.15710757,51.35264663]},"place":{"id":"d009bfdb11c20f3e","url":"https://api.twitter.com/1.1/geo/id/ d009bfdb11c20f3e.json","place_type":"city","name":"Basingstoke and Deane","full_name":"Basingstoke and Deane, Hampshire","country_code":"GB","country":"United Kingdom","contained_within": [],"bounding_box":{"type":"Polygon","coordinates":[[[-1.4601689999999998,51.133537999999994],[-1.4601689999999998,51.383949],[-0.9748119999999999,51.383949], [-0.9748119999999999,51.133537999999994]]]},"attributes":{}},"contributors":null,"retweet_count":0,"favorite_count":0,"entities":{"hashtags":[],"symbols":[],"urls":[],"user_mentions": [{"screen_name":"DM_Minions","name":"DespicableMe Minions","id":948825632,"id_str":"948825632","indices":[1,12]},{"screen_name":"CourtneyLouu","name":"coourts","id": 43456930,"id_str":"43456930","indices":[73,86]}],"media":[{"id":407263303325335552,"id_str":"407263303325335552","indices":[33,55],"media_url":"http://pbs.twimg.com/media/ Babj0QzCQAAMrX4.jpg","media_url_https":"https://pbs.twimg.com/media/Babj0QzCQAAMrX4.jpg","url":"http://t.co/Tq8AQoXcVy","display_url":"pic.twitter.com/ Tq8AQoXcVy","expanded_url":"http://twitter.com/DM_Minions/status/407263303405023232/photo/1","type":"photo","sizes":{"small":{"w":339,"h":236,"resize":"fit"},"large":{"w":958,"h": 666,"resize":"fit"},"thumb":{"w":150,"h":150,"resize":"crop"},"medium":{"w":599,"h":417,"resize":"fit"}},"source_status_id": 407263303405023232,"source_status_id_str":"407263303405023232"}]},"favorited":false,"retweeted":false,"possibly_sensitive":false,"filter_level":"medium","lang":"en"} {"created_at":"Sun Dec 01 21:44:59 +0000 2013","id":407264086347747328,"id_str":"407264086347747328","text":"@DannyArratoon already eaten it but you can bring me another one?","source":"u003ca href="http://twitter.com/download/iphone" rel="nofollow"u003eTwitter for iPhoneu003c/au003e","truncated":false,"in_reply_to_status_id": 407263944844533761,"in_reply_to_status_id_str":"407263944844533761","in_reply_to_user_id":210579473,"in_reply_to_user_id_str":"210579473","in_reply_to_screen_name":"DannyArratoon","user": {"id":495068253,"id_str":"495068253","name":"eleanor","screen_name":"ell_eysselinck","location":"london","url":null,"description":null,"protected":false,"followers_count": 430,"friends_count":345,"listed_count":0,"created_at":"Fri Feb 17 15:23:34 +0000 2012","favourites_count":3934,"utc_offset": 0,"time_zone":"London","geo_enabled":true,"verified":false,"statuses_count": 7800,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"000000","profile_background_image_url":"http://a0.twimg.com/profile_background_images/ 635582704/nud5dpj44ngj5bgv5k55.jpeg","profile_background_image_url_https":"https://si0.twimg.com/profile_background_images/635582704/ nud5dpj44ngj5bgv5k55.jpeg","profile_background_tile":true,"profile_image_url":"http://pbs.twimg.com/profile_images/378800000812022272/ b0218f45cb51525440be4f5782aaba6b_normal.jpeg","profile_image_url_https":"https://pbs.twimg.com/profile_images/378800000812022272/ b0218f45cb51525440be4f5782aaba6b_normal.jpeg","profile_banner_url":"https://pbs.twimg.com/profile_banners/495068253/ 1378837388","profile_link_color":"EB091C","profile_sidebar_border_color":"C0DEED","profile_sidebar_fill_color":"DDEEF6","profile_text_color":"333333","profile_use_background_image":true,"def ault_profile":false,"default_profile_image":false,"following":null,"follow_request_sent":null,"notifications":null},"geo":{"type":"Point","coordinates": [51.37097685,-0.21992044]},"coordinates":{"type":"Point","coordinates":[-0.21992044,51.37097685]},"place":{"id":"8840213b5fc1032a","url":"https://api.twitter.com/1.1/geo/id/ 8840213b5fc1032a.json","place_type":"city","name":"Sutton","full_name":"Sutton, London","country_code":"GB","country":"United Kingdom","contained_within":[],"bounding_box": {"type":"Polygon","coordinates":[[[-0.24586899999999998,51.321324999999995],[-0.24586899999999998,51.393378999999996],[-0.117306,51.393378999999996], [-0.117306,51.321324999999995]]]},"attributes":{}},"contributors":null,"retweet_count":0,"favorite_count":0,"entities":{"hashtags":[],"symbols":[],"urls":[],"user_mentions": [{"screen_name":"DannyArratoon","name":"Danny","id":210579473,"id_str":"210579473","indices":[0,14]}]},"favorited":false,"retweeted":false,"filter_level":"medium","lang":"en"} {"created_at":"Sun Dec 01 21:44:59 +0000 2013","id":407264087085953025,"id_str":"407264087085953025","text":"@brontemaria22 #firstin","source":"u003ca href="http://twitter.com/download /iphone" rel="nofollow"u003eTwitter for iPhoneu003c/au003e","truncated":false,"in_reply_to_status_id": 407262865251643392,"in_reply_to_status_id_str":"407262865251643392","in_reply_to_user_id":771468884,"in_reply_to_user_id_str":"771468884","in_reply_to_screen_name":"brontemaria22","user": {"id":442104599,"id_str":"442104599","name":"zolf","screen_name":"FleurMarie32","location":"","url":null,"description":null,"protected":false,"followers_count":360,"friends_count": 238,"listed_count":0,"created_at":"Tue Dec 20 19:13:40 +0000 2011","favourites_count":563,"utc_offset":null,"time_zone":null,"geo_enabled":true,"verified":false,"statuses_count":
  • 37. Anatomia de um Tweet { "created_at": "Wed Oct 02 15:53:43 +0000 2013", "id": 385432417126739968, "id_str": "385432417126739968", "text": "Learn more about the powerful #Linux container engine @docker in this video intro with @solomonstre - http://t.co/QJLdA1762Y @TwitterOSS", "source": "web", "truncated": false, "in_reply_to_status_id": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id": null, "in_reply_to_user_id_str": null, "in_reply_to_screen_name": null, "user": { "id": 1665823832, "id_str": "1665823832", "name": "Twitter University", "screen_name": "university", "location": "", "description": "Building a culture of learning for @TwitterEng and the world at large", "url": "http://t.co/c8IHJLE1Y8", "entities": { "url": { "urls": [{ "url": "http://t.co/c8IHJLE1Y8", "expanded_url": "http://youtube.com/twitteruniversity", "display_url": "youtube.com/twitteruniversu2026",
  • 38. REST APIs permite executar ações e acessar o que já aconteceu
  • 39. Twitter API Mais de 100 endpoints • Obter dados do Twitter ‣ GET /search/tweets
 • Engajar usuários socialmente ‣ POST /statuses/update
  • 40. REST APIs permite executar ações e acessar o que já aconteceu Tweets & Media GET statuses/lookup POST statuses/update POST media/upload Timelines GET statuses/home_timeline GET statuses/user_timeline GET statuses/mentions_timeline Search GET tweets/search Following GET friends/list Mais: Users, Favorites, Direct Messages, Block/Mute, Followers, Lists, Trends, Geo…
  • 42. Mais tweets Tweets diretos para empresas B2C
  • 47. CRASHLYTICS DIGITS MOPUB TWITTER KITANSWERS