Tips To Rock At
Hackathons
http://bit.ly/apitoolsworkshop
Nicolas Grenié (@picsoung) Dev Evangelist, 3scale
Vanessa Ramos (@deepbane) Product Manager, APItools
by
Get in touch! hello@apitools.com
Which APIs to use?
My app
Get in touch! hello@apitools.com
Quickly implement APIs
Authenticate Test & Debug No time for backend
Get in touch! hello@apitools.com
Need a prototype working...
… in a really short
period of time
Get in touch! hello@apitools.com
{Hackathon} Profit
APItools is here to help
+ =
Get in touch! hello@apitools.com
Tips And Tricks
To
Rock At Hackathons
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
1. What is APItools and how
to get an account
2. Get Twitter API keys
Getting
Ready
Get in touch! hello@apitools.com
What is APItools?
My app APItools
Web APIs
★ Store traces
★ Test & Debug
★ Transform API traffic
★ Analytics
requests
responses
Get in touch! hello@apitools.com
Demo apitools.com
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
Get in touch! hello@apitools.com
Step 1
Dealing with Cross-Origin Resource Sharing
Project source: https://github.
com/picsoung/twitterDemoApp.git
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
Get in touch! hello@apitools.com
Twitter API keys:
https://apps.twitter.com/
Documentation: https://dev.twitter.
com/docs/auth/application-only-auth
Get in touch! hello@apitools.com
Step 2.1.
Postman
Get in touch! hello@apitools.com
Step 2.2
APItools middleware
Part 2
https://gist.github.com/picsoung/3cdb87fd462bb0a754f9
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
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
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
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
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
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
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
Get in touch! hello@apitools.com
Questions?
Thank You
and
Happy Hacking!
@apitools - hello@apitools.com
nicolas@3scale.net, vanessa@3scale.net

Tips To Rock At Hackathons

  • 1.
    Tips To RockAt 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 isAPItools 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
  • 10.
    Get in touch!hello@apitools.com Demo apitools.com
  • 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
  • 15.
    Get in touch!hello@apitools.com Step 2.1. Postman
  • 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
  • 24.
    Get in touch!hello@apitools.com Questions?
  • 25.
    Thank You and Happy Hacking! @apitools- hello@apitools.com nicolas@3scale.net, vanessa@3scale.net