The Codex of Business Writing Software for Real-World Solutions 2.pptx
Tips To Rock At Hackathons
1. Tips To Rock At
Hackathons
http://bit.ly/apitoolsworkshop
Nicolas Grenié (@picsoung) Dev Evangelist, 3scale
Vanessa Ramos (@deepbane) Product Manager, APItools
by
2. Get in touch! hello@apitools.com
Which APIs to use?
My app
3. Get in touch! hello@apitools.com
Quickly implement APIs
Authenticate Test & Debug No time for backend
4. Get in touch! hello@apitools.com
Need a prototype working...
… in a really short
period of time
5. Get in touch! hello@apitools.com
{Hackathon} Profit
APItools is here to help
+ =
6. Get in touch! hello@apitools.com
Tips And Tricks
To
Rock At Hackathons
7. Get in touch! hello@apitools.com
5 Tips To Rock At Hackathons
1. Deal with Cross-Origin Resource Sharing
2. Authentication
3. Proxy mobile HTTP(s) requests
4. Data type conversion
5. Add caching information to deal with rate limits
8. 1. What is APItools and how
to get an account
2. Get Twitter API keys
Getting
Ready
9. Get in touch! hello@apitools.com
What is APItools?
My app APItools
Web APIs
★ Store traces
★ Test & Debug
★ Transform API traffic
★ Analytics
requests
responses
11. Get in touch! hello@apitools.com
5 Tips To Rock At Hackathons
1. Deal with Cross-Origin Resource Sharing
2. Authentication
3. Proxy mobile HTTP(s) requests
4. Data type conversion
5. Add caching information to deal with rate limits
12. Get in touch! hello@apitools.com
Step 1
Dealing with Cross-Origin Resource Sharing
Project source: https://github.
com/picsoung/twitterDemoApp.git
13. Get in touch! hello@apitools.com
5 Tips To Rock At Hackathons
1. Deal with Cross-Origin Resource Sharing
2. Authentication
3. Proxy mobile HTTP(s) requests
4. Data type conversion
5. Add caching information to deal with rate limits
14. Get in touch! hello@apitools.com
Twitter API keys:
https://apps.twitter.com/
Documentation: https://dev.twitter.
com/docs/auth/application-only-auth
16. Get in touch! hello@apitools.com
Step 2.2
APItools middleware
Part 2
https://gist.github.com/picsoung/3cdb87fd462bb0a754f9
17. Get in touch! hello@apitools.com
5 Tips To Rock At Hackathons
1. Deal with Cross-Origin Resource Sharing
2. Authentication
3. Proxy mobile HTTP(s) requests
4. Data type conversion
5. Add caching information to deal with rate limits
18. Get in touch! hello@apitools.com
Step 3
Proxying mobile HTTP(s)
requests
Get code: https://github.com/vramosp/socialmusicapp/tree/noproxy
Get solution: https://github.com/JaviSoto/JSTAPIToolsURLProtocol
19. Get in touch! hello@apitools.com
5 Tips To Rock At Hackathons
1. Deal with Cross-Origin Resource Sharing
2. Authentication
3. Proxy mobile HTTP(s) requests
4. Data type conversion
5. Add caching information to deal with rate limits
20. Get in touch! hello@apitools.com
Step 4
Transforming RSS feed (Google News)
into JSON
https://docs.apitools.com/2014/05/06/transforming-an-rss-
feed-into-json-with-apitools.html
21. Get in touch! hello@apitools.com
5 Tips To Rock At Hackathons
1. Deal with Cross-Origin Resource Sharing
2. Authentication
3. Proxy mobile HTTP(s) requests
4. Data type conversion
5. Add caching information to deal with rate limits
22. Get in touch! hello@apitools.com
Step 5
Adding 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
23. Get in touch! hello@apitools.com
5 Tips To Rock At Hackathons
1. Deal with Cross-Origin Resource Sharing
2. Authentication
3. Proxy mobile HTTP(s) requests
4. Data type conversion
5. Add caching information to deal with rate limits