Hi,
I've been mulling this for some time, so I thought I'd put it out there
to get ideas/comments etc.
S. Sriram
Use case
--------
Joe is cranking up his spiffy new site
acme.com and wants to
do something with a web service
s/do something/allow users to add events
s/service/google calendar
s/do something/status update
s/service/twitter
Current scenario
-----------------
1. get api keys,
3. grab oauth code libs,
4. write code,
5. test
The Problem
-----------
Steps 2-5 take time, effort and a reasonably high degree of skill and are replicated
over and over by each developer on their implementation.
The Solution
------------
ApiApps using webhooks on a POSS server
ApiApps are sinppets of hosted code that encapsulate the access to
various web apis(producers) and are made available to api consumers
via simple http calls.
As an example lets take google calendar.
If
acme.com (api consumer) wants the ability to have its event be added into
its customer John's (user) google (api producer) calendar. It needs to
1. Get an oauth token from John
2. Create an api call to 'add event' to John's calendar., test etc.
This is 'high-level programming work' that needs to be done by
acme.comMore importantly, besides gcal
acme.com would like to connect to multiple
apis each of them requires a separate coding imperative and more 'high-level
programming man-hours' It starts to get expensive very quickly.
Now, if ApiApps provided a 'canned' microsite that
b) did the oauth on behalf of
acme.com for John and google calendar
c) setup a url that when called 'added the event' to John's calendar
d) Instituted rate-limiting measures etc. and provided for an
upgrade path out of POSS to Paid/hosting etc.
greater adoption of its api/services and peace will reign on
earth :-)
How might this work.
------------------------
1.
acme.com creates an account with google, gets api credentials
2.
acme.com creates an account with ApiApps and submits these credentials.
3. On
acme.com's website a link is placed to
4. User John clicks on this link
5. apiapps receives this request and does a signed api http POST call to
call i.e. date, event description etc.
7. apiapps - saves this info
8. apiapps than gets google oauth credentials from John (saves that for
future reference)
9. On getting John's credentials, apiapps on behalf of acme makes the
google calendar api call/entry
11. apiapps redirects John back to
acme.com
So, for
acme.com to offer google calendar apiservices to its users
required
1. A onetime setup with apiapps
2. Addition of an apiapps link to website where needed
3. Writing 2 url handlers
which gets called by apiapps and returns a json payload
detailing what needs to be done.
which gets called by apiapps with a POST containing confirmation
detils, api call output etc.
This is 'relatively easy' programming work that can be done by a low-level
programmer.
ApiApps builds this out for google, yahoo and the major properties.
ApiApps provides a 'api adaptor library building' interface to all
other api producers, so they can build an ApiApp for their service.
Long term sustainable funding for the POSS service should be possible
from api producers interested in seeing more rapid adoption of their
web services and with the raft of new cloud hosting services a migration
path to paid for high volume users should be possible.
--x--
--
You received this message because you are subscribed to the Google Groups "WebHooks" group.
To post to this group, send email to
webh...@googlegroups.com.
To unsubscribe from this group, send email to
webhooks+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/webhooks?hl=en.