Funambol	  Cloud	  API	  (CAPI)                                 	              Greg	  Gamp	     Sales	  Engineering	  Mana...
Funambol	  Overview	  #1	  open	  source	  mobile	  sync	  server:	  4M	  downloads,	  50k	  developers,	  200	  countries...
Cloud	  API	  (CAPI)                                                                  	  Web	  Widgets	      PC	  Gadgets	...
Cloud	  API	  (CAPI)                                                        	  • 	  Integrate	  contacts,	  calendars	  &	...
CAPI	  Apps	  Gallery	  • 	  Funambol	  contacts,	  calendar	  and	  pix	  on	  iGoogle	  • 	  Funambol	  pictures	  on	  ...
Getting	  Started	  with	  Funambol	  CAPI                                               	  • 	  CAPI	  request	  format	 ...
Sample	  API	  Calls:  	                                           Retrieve	  Contacts	  via	  Java	  HttpClient client = ...
Funambol	  CAPI	  –	  Additional	  Resources	  • 	  CAPI	  documentation	  • 	  Discussion	  forum	  https://capi.forge.fu...
Upcoming SlideShare
Loading in …5
×

Funambol Cloud API (CAPI)

1,343 views
1,249 views

Published on

From the August 2010 API Meetup, Gregory Camp from Funambol (www.funambol.com) gave the presentation entitled Funambol Cloud API (CAPI)

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,343
On SlideShare
0
From Embeds
0
Number of Embeds
97
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Funambol Cloud API (CAPI)

  1. 1. Funambol  Cloud  API  (CAPI)   Greg  Gamp   Sales  Engineering  Manager  
  2. 2. Funambol  Overview  #1  open  source  mobile  sync  server:  4M  downloads,  50k  developers,  200  countries  Mobile  cloud  sync  and  device  management  for  billions  of  mobile  phones  and  connected  devices  Global  presence:  HQ  Silicon  Valley,  R&D  Europe,  worldwide  customers   GSMA   Innovation   Top   Best  Mobile   Best  Mobile   Winner:   Mobile   Communications   Service   Mobile   Cloud   Solution   Platform   Cloud  Sync   Sync   2010   2010   Nov  2009   2009  
  3. 3. Cloud  API  (CAPI)  Web  Widgets   PC  Gadgets   Mobile  Apps   Funambol  Cloud  API  (CAPI)  
  4. 4. Cloud  API  (CAPI)  •   Integrate  contacts,  calendars  &  pictures  from  variety  of  sources  e.g.        mobile  phones,  social  networks,  email  systems,  PCs/Macs  into  apps  Examples  •   Sync  calendar  (from  Google,  Outlook,  phone)  to  GPS  device  •   Sync  pictures  (from  phone)  to  internet-­‐connected  device          (e.g.  a  Chumby,  e-­‐picture  frame,  e-­‐book  reader  or  TV)  •   Sync  contacts  (from  almost  anywhere)  to  your  car  •   Include  contacts  and  calendars  in  iGoogle  widgets  •   Build  in  a  few  hours  using  simple  API  calls  from  Java,  AJAX,  PHP    
  5. 5. CAPI  Apps  Gallery  •   Funambol  contacts,  calendar  and  pix  on  iGoogle  •   Funambol  pictures  on  Yahoo  TV  https://capi.forge.funambol.org/appsgallery.html  
  6. 6. Getting  Started  with  Funambol  CAPI  •   CAPI  request  format  e.g.          POST  http://my.funambol.com/capi/<component>            valid  components:  contact,  calendar  and  picture  •   Authentication  •   Sample  API  calls  (AJAX,  Java,  PHP)          https://capi.forge.funambol.org/wiki/GetStarted  
  7. 7. Sample  API  Calls:   Retrieve  Contacts  via  Java  HttpClient client = new HttpClient();PostMethod post = new PostMethod("http://my.funambol.com/capi/login?action=login");GetMethod get = new GetMethod("http://my.funambol.com/capi/contact?command=getdata");try { //login in NameValuePair[] namevalue = new NameValuePair[]{ new NameValuePair("login", "username"), new NameValuePair("password", "password”)}; post.setRequestBody(namevalue); int statusCode = client.executeMethod(post); byte[] responseBody = post.getResponseBody(); System.out.println(" login:"+new String(responseBody)); //counting the contacts on server statusCode = client.executeMethod(get); String responseBodyStr = get.getResponseBodyAsString(); JSONObject obj = JSONObject.fromObject(responseBodyStr); System.out.println("Count " + obj.getString("count")+" Contacts."); } catch (HttpException e) { e.printStackTrace();} catch (IOException e) { e.printStackTrace();} finally { post.releaseConnection(); get.releaseConnection();}
  8. 8. Funambol  CAPI  –  Additional  Resources  •   CAPI  documentation  •   Discussion  forum  https://capi.forge.funambol.org  

×