tips to rock at hackathons
DESCRIPTION
Save some time (and energy!) at hackathons by using 3scale's APItools.TRANSCRIPT
Tips To Rock At Hackathons
http://bit.ly/apitoolsworkshop
Nicolas Grenié (@picsoung) Dev Evangelist, 3scaleVanessa Ramos (@deepbane) Product Manager, APItools
by
Get in touch! [email protected]
Quickly implement APIs
Authenticate Test & Debug No time for backend
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
1. What is APItools and how to get an account
2. Get Twitter API keys
GettingReady
Get in touch! [email protected]
What is APItools?
My app APItools
Web APIs
★ Store traces★ Test & Debug★ Transform API traffic★ Analytics
requests
responses
Get in touch! [email protected]
Demo apitools.com
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
Get in touch! [email protected]
Step 1Dealing with Cross-Origin Resource Sharing
Project source: https://github.com/picsoung/twitterDemoApp.git
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
Get in touch! [email protected]
Twitter API keys:https://apps.twitter.com/
Documentation: https://dev.twitter.com/docs/auth/application-only-auth
Get in touch! [email protected]
Step 2.2
APItools middlewarePart 2
https://gist.github.com/picsoung/3cdb87fd462bb0a754f9
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
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
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
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
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
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
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
Get in touch! [email protected]
Questions?
Thank You and
Happy Hacking!@apitools - [email protected]