hackcamp

24
TM @twitterapi @hackcamp Jun 12, 2010 #annotations #hackcamp @hackcamp @themattharris

Upload: matt-harris

Post on 01-Jun-2015

3.268 views

Category:

Technology


0 download

DESCRIPTION

Twitter API short overview for the London Hackcamp June 12 2010

TRANSCRIPT

Page 1: Hackcamp

TM

@twitterapi

@hackcampJun 12, 2010

#annotations #hackcamp @hackcamp @themattharris

Page 2: Hackcamp

The team

Page 3: Hackcamp

Our APIs

Page 4: Hackcamp

Our APIs‣REST API

‣Streaming API

‣Search API

‣Geo API

‣ Trends API

‣Annotations

Page 5: Hackcamp

Libraries

http://dev.twitter.com/pages/oauth_libraries

ActionScript/FlashC/C++C#/.NETClojureErlangJavaJavaScript

Objective-C/Cocoa & iPhone ProgrammingPerlPHPPythonQtRubyScala

Page 6: Hackcamp

OAuthpocalypseThe day is 30th June

Page 7: Hackcamp

YES 30th JUNE 2010

Page 8: Hackcamp

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

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

xAuth not XAuth

xAuth is OAuth

Page 11: Hackcamp

Check your host!

api.twitter.com

twitter.com

Page 12: Hackcamp

Annotations?

Page 13: Hackcamp

DRAFT

Page 14: Hackcamp

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

What makes an annotation?

Page 16: Hackcamp

What makes an annotation?

Anything you want

Page 17: Hackcamp

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

ExamplesWhat can I do with Annotations?

Page 20: Hackcamp

Help... Check outdev.twitter.comapiwiki.twitter.com

TM

or see me :)

Page 21: Hackcamp

World Cup Check outtwitter.com/worldcup

TM

Page 22: Hackcamp

TM

Page 23: Hackcamp

Join the Flock! Find out morejobs.twitter.com

TM

Page 24: Hackcamp

Questions? Follow me attwitter.com/themattharris

TM