hackcamp

Post on 01-Jun-2015

3.268 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Twitter API short overview for the London Hackcamp June 12 2010

TRANSCRIPT

TM

@twitterapi

@hackcampJun 12, 2010

#annotations #hackcamp @hackcamp @themattharris

The team

Our APIs

Our APIs‣REST API

‣Streaming API

‣Search API

‣Geo API

‣ Trends API

‣Annotations

Libraries

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

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

Objective-C/Cocoa & iPhone ProgrammingPerlPHPPythonQtRubyScala

OAuthpocalypseThe day is 30th June

YES 30th JUNE 2010

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

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

xAuth not XAuth

xAuth is OAuth

Check your host!

api.twitter.com

twitter.com

Annotations?

DRAFT

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 ...}}, ...]

What makes an annotation?

What makes an annotation?

Anything you want

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

ExamplesWhat can I do with Annotations?

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

TM

or see me :)

World Cup Check outtwitter.com/worldcup

TM

TM

Join the Flock! Find out morejobs.twitter.com

TM

Questions? Follow me attwitter.com/themattharris

TM

top related