yahoo! app. platform : university of michigan hack u '09

17
Building Applications on Yahoo! Photo credit: jurvetson (http://ow.ly/1046) University of Michigan Hack U ’09 Erik Eldridge Yahoo! Developer Network

Upload: erik-eldridge

Post on 16-May-2015

1.363 views

Category:

Technology


0 download

DESCRIPTION

What is the Yahoo Application Platform?  How do I use it?  YAP provides you with a base from which you can quickly and securely launch apps on My Yahoo!.  The Yahoo! activity stream presents unparalleled opportunities for app virality by transmitting updates from your application to a diversity of Yahoo! products including Mail, Messenger, and your profile, and even off-network through the new social APIs.  Build on YAP and your next idea could have an audience of millions overnight. In this brief talk, Erik introduces the platform, explains some of the technologies it uses, and walks through a couple code examples demonstrating some of the platform features.

TRANSCRIPT

Page 1: Yahoo! App. Platform : University of Michigan Hack U '09

Building Applications on Yahoo!

Photo credit: jurvetson (http://ow.ly/1046)

University of Michigan Hack U ’09

Erik Eldridge

Yahoo! Developer Network

Page 2: Yahoo! App. Platform : University of Michigan Hack U '09

2

Why is Yahoo! opening up?

• A history of supporting open technology– Apache, MySQL, PHP, JavaScript,

BSD/Linux, to name a few

• A history of hacking

• Yahoo! wants to share its audience

Page 3: Yahoo! App. Platform : University of Michigan Hack U '09

3

Before I continue…

• These slides are online here:slideshare.net/erikeldridge

Page 4: Yahoo! App. Platform : University of Michigan Hack U '09

4

Yahoo!’s Open Stack

Page 5: Yahoo! App. Platform : University of Michigan Hack U '09

5

What is the Yahoo! Application Platform?

• It’s a way to run apps on Yahoo!

Page 6: Yahoo! App. Platform : University of Michigan Hack U '09

6

3 views of YAP: My Y! screenshot

Page 7: Yahoo! App. Platform : University of Michigan Hack U '09

7

3 views of YAP: canvas screenshot

Page 8: Yahoo! App. Platform : University of Michigan Hack U '09

8

3 views of YAP: y! metro

Page 9: Yahoo! App. Platform : University of Michigan Hack U '09

9

Yahoo! Application Platform (YAP)

• Optimized for speed and security (YML, Caja)• Uses raw Javascript, CSS, and HTML, and

Yahoo! Markup Language (YML)• Supports OpenSocial JavaScript API

Page 10: Yahoo! App. Platform : University of Michigan Hack U '09

10

How do I use it?

YDN Open App

+

Your server

+

Your code

=

Your app on Yahoo!

Page 11: Yahoo! App. Platform : University of Michigan Hack U '09

11

Example: OpenSocial Activities

<script>

var params = {};

params[opensocial.Activity.Field.TITLE] = 'title';

params[opensocial.Activity.Field.BODY] = 'body';

var activity = opensocial.newActivity(params);

opensocial.requestCreateActivity(

activity,

opensocial.CreateActivityPriority.LOW,

function(){});

</script>

Page 12: Yahoo! App. Platform : University of Michigan Hack U '09

12

Example: Screenshot of results

Page 13: Yahoo! App. Platform : University of Michigan Hack U '09

13

What did we do?

<script>

var params = {};

params[opensocial.Activity.Field.TITLE] = 'title';

params[opensocial.Activity.Field.BODY] = 'body';

var activity = opensocial.newActivity(params);

opensocial.requestCreateActivity(

activity,

opensocial.CreateActivityPriority.LOW,

function(){});

</script>

Page 14: Yahoo! App. Platform : University of Michigan Hack U '09

14

App Updates

Updates from YAP are distributed across Yahoo!• Properties, e.g., Mail, Profiles, Buzz, etc.• Clients, e.g., Messenger, Toolbar• Externally through Updates API

Page 15: Yahoo! App. Platform : University of Michigan Hack U '09

15

What does YAP do for me?

• Hundreds of millions of Yahoo! users

• Instant publication

• Secure, Standard JavaScript, HTML, CSS

• OpenSocial JS API

Page 17: Yahoo! App. Platform : University of Michigan Hack U '09

17

Thank you!

• If you have questions later:– Twitter/IRC: erikeldridge