Hackcamp
-
Upload
matt-harris -
Category
Technology
-
view
3.268 -
download
0
description
Transcript of Hackcamp
![Page 1: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/1.jpg)
TM
@twitterapi
@hackcampJun 12, 2010
#annotations #hackcamp @hackcamp @themattharris
![Page 2: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/2.jpg)
The team
![Page 3: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/3.jpg)
Our APIs
![Page 4: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/4.jpg)
Our APIs‣REST API
‣Streaming API
‣Search API
‣Geo API
‣ Trends API
‣Annotations
![Page 5: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/5.jpg)
Libraries
http://dev.twitter.com/pages/oauth_libraries
ActionScript/FlashC/C++C#/.NETClojureErlangJavaJavaScript
Objective-C/Cocoa & iPhone ProgrammingPerlPHPPythonQtRubyScala
![Page 6: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/6.jpg)
OAuthpocalypseThe day is 30th June
![Page 7: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/7.jpg)
YES 30th JUNE 2010
![Page 8: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/8.jpg)
What you need to know‣ All applications must be using OAuth for the REST API
‣ Streaming API will still support Basic Auth
‣ Search API has no auth
‣ OAuth attributed open source auth is coming (#needsanewname)
‣ Replace curl with twurl
http://dev.twitter.com/pages/auth_overview
http://github.com/marcel/twurl
![Page 9: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/9.jpg)
OAuth Methods‣ Web must use three legged OAuth
‣ Desktop and mobile apps can also use out-of-band OAuth
‣ Some desktop and mobile apps will be considered for xAuth
![Page 10: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/10.jpg)
xAuth not XAuth
xAuth is OAuth
![Page 11: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/11.jpg)
Check your host!
api.twitter.com
twitter.com
![Page 12: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/12.jpg)
Annotations?
![Page 13: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/13.jpg)
DRAFT
![Page 14: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/14.jpg)
What do annotations look like?‣ Every annotation has
‣ a “type”
‣ type maps to attribute and value pair
‣ Types can be repeated but attributes in each annotationcannot be
‣ Store an array of annotations per tweet
‣ Same “visibility policy” as tweets
[{type1 => {attribute1 => val1, attribute2 => val2, ..., attributen => valn}}, {type2 => {attributen+1 ...}}, ...]
![Page 15: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/15.jpg)
What makes an annotation?
![Page 16: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/16.jpg)
What makes an annotation?
Anything you want
![Page 17: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/17.jpg)
The Rules‣ Rule 1: Put whatever you want in there
‣ Rule 2: Remember annotations you add are useable by others
‣ Rule 3: Nobody owns an annotation type
‣ Rule 4: Be careful consuming them - we don’t do any validation
![Page 18: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/18.jpg)
ExamplesWhat can I do with Annotations?
![Page 19: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/19.jpg)
Check outhttp://wiki.github.com/themattharris/annotations-hackfest/
![Page 20: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/20.jpg)
Help... Check outdev.twitter.comapiwiki.twitter.com
TM
or see me :)
![Page 21: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/21.jpg)
World Cup Check outtwitter.com/worldcup
TM
![Page 22: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/22.jpg)
TM
![Page 23: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/23.jpg)
Join the Flock! Find out morejobs.twitter.com
TM
![Page 24: Hackcamp](https://reader033.fdocuments.in/reader033/viewer/2022060112/556bd854d8b42ab2138b4b95/html5/thumbnails/24.jpg)
Questions? Follow me attwitter.com/themattharris
TM