Skip to content

rishijash/Contextio-Android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build awesome things with email! Contextio takes the pain out of syncing email data with your app so you can focus on what makes your product great.

Contextio-Android is an easy to use Android library for communicating with the Context.IO 2.0 API. It is built upon Scrible and provides convenient asynchronous block based methods for interacting with the API.

Getting Started

  • Sign up for Developer Account Contextio
  • Submit a request for a 3-legged OAuth Token. This library only supports 3-legged tokens to ensure end-users of your application can only access their own account
  • Download Contextio-Android and check out the included Android example app.
  • View the full Context.IO API documentation to better familiarize yourself with the API

How to Setup

     compile 'org.scribe:scribe:1.3.5'
  • Import ContextioAPI.java, ContextioResult.java, OAuthProvider.java to your project.

Example Usage

//Initialize
  ContextioAPI cio = new ContextioAPI("your-consumer-key","your-consumer-secret");
  
//Get User's Messages
  JSONObject params = new JSONObject();
  params.put("limit","80");

  cio.getMessages("user-account-id", params, new ContextioResult<JSONArray>() {
    @Override
    public void onTaskComplete(JSONArray result) {
      //API Result
      Log.e("messages", result.toString());
    }
  });

Acknowledgements

Thanks to Scirbble which is used for authenticated communication with the API server.

Lisence

Contextio-Android is licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See the LICENSE file for details.

Releases

No releases published

Packages

No packages published

Languages