28
TURN YOUR GOOGLE SPREADSHEET INTO A CUSTOM API Full stack PaaS for web APIs http://apispark.com September 16, 2014

Turn your Google spreadsheet into a custom API - API World Workshop

  • Upload
    restlet

  • View
    326

  • Download
    1

Embed Size (px)

DESCRIPTION

Workshop at API World 2014 showing you how to create a custom web API from data stored in a Google Spreadsheet. Presented on 09/16/2014 in San Francisco by Restlet CEO, Jérôme Louvel.

Citation preview

Page 1: Turn your Google spreadsheet into a custom API - API World Workshop

TURN YOUR GOOGLE SPREADSHEETINTO A CUSTOM API

Full stack PaaS for web APIshttp://apispark.com

September 16, 2014

Page 2: Turn your Google spreadsheet into a custom API - API World Workshop

PRESENTERENTREPRENEUR AND WEB API EXPERT

Jérôme LOUVEL▪ CEO of Restlet▪ 12 years of experience in software (EU and US)▪ Restlet Framework creator (2005)▪ JAX-RS 1.0 expert in JCP (JSR-311)▪ Contributor to “RESTful Web Services” (O’Reilly)▪ Co-author of “Restlet in Action” (Manning)

Contact▪ [email protected]▪ Twitter : @jlouvel▪ Blog : blog.restlet.com

Page 3: Turn your Google spreadsheet into a custom API - API World Workshop

AGENDA

1) Overview of APISpark (3’)

2) Demo of the Google Spreadsheet wrapper (27’)– Sign in to APISpark– Prepare the Google Spreadsheet– Create the Data Store wrapper– Export the Custom Web API

3) Questions (5’)

Page 4: Turn your Google spreadsheet into a custom API - API World Workshop

WEB API PROJECTTYPICAL LIFE CYCLE

1) Do It Yourself (DIY)long, technical, expensive but highly flexible

2) Platform as a Service (PaaS)integrated, fast, cost effective

Page 5: Turn your Google spreadsheet into a custom API - API World Workshop

APISPARK CLOUD PLATFORMAVAILABLE IN PUBLIC BETA

▪ Web IDEUse, develop and manage your APIs

▪ HostingRun your APIs and their backends

▪ CatalogReference & Promote your APIs

We’d love to hear what you think! Email us at [email protected] to share your feedback.

Page 6: Turn your Google spreadsheet into a custom API - API World Workshop

REEXPOSING A SPREADSHEET

Entity Store

Custom API

HTTP HTTP

Google Spreadsheet

Page 7: Turn your Google spreadsheet into a custom API - API World Workshop

GOOGLE SPREADSHEET WRAPPERFEATURES

▪ Work in both read and write modes– your data always stays in sync

▪ Your data can be updated– directly in the Google Spreadsheet– via the Custom Web API

▪ Additional security layer– your main Google password isn’t exposed– you control who has access to the custom API

Page 8: Turn your Google spreadsheet into a custom API - API World Workshop

WHERE IS SPARKY COMPETITION

Sparky is flying to API Strat in Chicago and is sending some pictures along the way. Every week, participate in our new #WhereisSparky challenge.

How to play▪ Retrieve photo of the week from the Sparky API▪ Find Sparky▪ Retrieve words list▪ Compose sentence describing where Sparky is located▪ Submit a POST request with your answer

This week’s prize▪ Custom Big Jambox speakers

Worth $299More info http://pages.restlet.com/whereissparky

Page 9: Turn your Google spreadsheet into a custom API - API World Workshop

SOCIAL LOGIN

Page 10: Turn your Google spreadsheet into a custom API - API World Workshop

YOUR DASHBOARD

Page 11: Turn your Google spreadsheet into a custom API - API World Workshop

1. ENTITY STORE CREATION

Page 12: Turn your Google spreadsheet into a custom API - API World Workshop

ENABLE 2-STEPS AUTHENTICATION !ON YOUR GOOGLE ACCOUNT

Page 13: Turn your Google spreadsheet into a custom API - API World Workshop

2. TEST YOUR GOOGLE CREDENTIALS

Page 14: Turn your Google spreadsheet into a custom API - API World Workshop

3. SPREADSHEET - WORDS

Page 15: Turn your Google spreadsheet into a custom API - API World Workshop

3. SPREADSHEET - ANSWERS

Page 16: Turn your Google spreadsheet into a custom API - API World Workshop

3. SPREADSHEET - RESULTS

Page 17: Turn your Google spreadsheet into a custom API - API World Workshop

3. SPREADSHEET - CORRECTION

Page 18: Turn your Google spreadsheet into a custom API - API World Workshop

MAPPING TABLE

Google Docs APISpark

Spread sheet Entity Store

Work sheet * Entity *

Column * Entity property *

First row Entity property names

Next rows Entity instances

Page 19: Turn your Google spreadsheet into a custom API - API World Workshop

4. IMPORT A SPREADSHEET

Page 20: Turn your Google spreadsheet into a custom API - API World Workshop

5. ADD ENTITIES

Page 21: Turn your Google spreadsheet into a custom API - API World Workshop

6. ENTITY STORE

Page 22: Turn your Google spreadsheet into a custom API - API World Workshop

7. FILE STORE

Page 23: Turn your Google spreadsheet into a custom API - API World Workshop

8. API

Page 24: Turn your Google spreadsheet into a custom API - API World Workshop

8. API

Page 25: Turn your Google spreadsheet into a custom API - API World Workshop

8. API

Page 26: Turn your Google spreadsheet into a custom API - API World Workshop

9. DEPLOY AND CONSUME

Page 27: Turn your Google spreadsheet into a custom API - API World Workshop

SUMMARY

Like this feature? Give it a go with our simple tutorial: APISpark.com > Docs > Tutorials

3 mins recap video

Page 28: Turn your Google spreadsheet into a custom API - API World Workshop

KEEP IN TOUCH!

http://restlet.comhttp://blog.restlet.com

Twitter: @[email protected]

Leading web API platform