tips to rock at hackathons

25
Tips To Rock At Hackathons http://bit.ly/apitoolsworkshop Nicolas Grenié (@picsoung) Dev Evangelist, 3scale Vanessa Ramos (@deepbane) Product Manager, APItools by

Upload: 3scale

Post on 08-May-2015

2.534 views

Category:

Technology


0 download

DESCRIPTION

Save some time (and energy!) at hackathons by using 3scale's APItools.

TRANSCRIPT

Page 1: Tips To Rock At Hackathons

Tips To Rock At Hackathons

http://bit.ly/apitoolsworkshop

Nicolas Grenié (@picsoung) Dev Evangelist, 3scaleVanessa Ramos (@deepbane) Product Manager, APItools

by

Page 2: Tips To Rock At Hackathons

Get in touch! [email protected]

Which APIs to use?

My app

Page 3: Tips To Rock At Hackathons

Get in touch! [email protected]

Quickly implement APIs

Authenticate Test & Debug No time for backend

Page 4: Tips To Rock At Hackathons

Get in touch! [email protected]

Need a prototype working...

… in a really short period of time

Page 5: Tips To Rock At Hackathons

Get in touch! [email protected]

{Hackathon} Profit

APItools is here to help

+ =

Page 6: Tips To Rock At Hackathons

Get in touch! [email protected]

Tips And TricksTo

Rock At Hackathons

Page 7: Tips To Rock At Hackathons

Get in touch! [email protected]

5 Tips To Rock At Hackathons

1. Deal with Cross-Origin Resource Sharing2. Authentication3. Proxy mobile HTTP(s) requests4. Data type conversion5. Add caching information to deal with rate limits

Page 8: Tips To Rock At Hackathons

1. What is APItools and how to get an account

2. Get Twitter API keys

GettingReady

Page 9: Tips To Rock At Hackathons

Get in touch! [email protected]

What is APItools?

My app APItools

Web APIs

★ Store traces★ Test & Debug★ Transform API traffic★ Analytics

requests

responses

Page 10: Tips To Rock At Hackathons

Get in touch! [email protected]

Demo apitools.com

Page 11: Tips To Rock At Hackathons

Get in touch! [email protected]

5 Tips To Rock At Hackathons

1. Deal with Cross-Origin Resource Sharing2. Authentication3. Proxy mobile HTTP(s) requests4. Data type conversion5. Add caching information to deal with rate limits

Page 12: Tips To Rock At Hackathons

Get in touch! [email protected]

Step 1Dealing with Cross-Origin Resource Sharing

Project source: https://github.com/picsoung/twitterDemoApp.git

Page 13: Tips To Rock At Hackathons

Get in touch! [email protected]

5 Tips To Rock At Hackathons

1. Deal with Cross-Origin Resource Sharing2. Authentication3. Proxy mobile HTTP(s) requests4. Data type conversion5. Add caching information to deal with rate limits

Page 14: Tips To Rock At Hackathons

Get in touch! [email protected]

Twitter API keys:https://apps.twitter.com/

Documentation: https://dev.twitter.com/docs/auth/application-only-auth

Page 15: Tips To Rock At Hackathons

Get in touch! [email protected]

Step 2.1.

Postman

Page 16: Tips To Rock At Hackathons

Get in touch! [email protected]

Step 2.2

APItools middlewarePart 2

https://gist.github.com/picsoung/3cdb87fd462bb0a754f9

Page 17: Tips To Rock At Hackathons

Get in touch! [email protected]

5 Tips To Rock At Hackathons

1. Deal with Cross-Origin Resource Sharing2. Authentication3. Proxy mobile HTTP(s) requests4. Data type conversion5. Add caching information to deal with rate limits

Page 18: Tips To Rock At Hackathons

Get in touch! [email protected]

Step 3Proxying mobile HTTP(s)

requests

Get code: https://github.com/vramosp/socialmusicapp/tree/noproxyGet solution: https://github.com/JaviSoto/JSTAPIToolsURLProtocol

Page 19: Tips To Rock At Hackathons

Get in touch! [email protected]

5 Tips To Rock At Hackathons

1. Deal with Cross-Origin Resource Sharing2. Authentication3. Proxy mobile HTTP(s) requests4. Data type conversion5. Add caching information to deal with rate limits

Page 20: Tips To Rock At Hackathons

Get in touch! [email protected]

Step 4Transforming RSS feed (Google News)

into JSON

https://docs.apitools.com/2014/05/06/transforming-an-rss-feed-into-json-with-apitools.html

Page 21: Tips To Rock At Hackathons

Get in touch! [email protected]

5 Tips To Rock At Hackathons

1. Deal with Cross-Origin Resource Sharing2. Authentication3. Proxy mobile HTTP(s) requests4. Data type conversion5. Add caching information to deal with rate limits

Page 22: Tips To Rock At Hackathons

Get in touch! [email protected]

Step 5Adding caching information to avoid rate limits

Documentation: https://dev.twitter.com/docs/api/1.1/get/trends/place

Code: https://github.com/picsoung/twitterDemoApp/tree/step5-cache

Page 23: Tips To Rock At Hackathons

Get in touch! [email protected]

5 Tips To Rock At Hackathons

1. Deal with Cross-Origin Resource Sharing2. Authentication3. Proxy mobile HTTP(s) requests4. Data type conversion5. Add caching information to deal with rate limits

Page 24: Tips To Rock At Hackathons

Get in touch! [email protected]

Questions?