Skip to content
A simple Java client for InformaCast Mobile based on Resty
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

InformaCast Mobile REST Java Client

A simple, easy to use REST client based on Resty


Place the following in your pom file and you're ready to rock and roll!



Import the client:

import com.singlewire.RestClient;

Create an instance of the client.

RestClient icmClient = new RestClient("<My Access Token>");

Have fun!

// Get first page of users

// Paginate through all users
Iterator<JSONObject> users = icmClient.list(users());
while (users.hasNext()) {
    System.out.println("Fetched user with name " +"name"));

// Search for a user named Jim
Map<String, String> query = new HashMap<String, String>();
query.put("limit", "10");
query.put("q", "Jim");
icmClient.json(users() + urlEncode(query));

// Get a specific user

// Get a specific user's devices

// Create a user
JSONObject createdUser = icmClient.json(users(), form(data("name", "Jim Bob"), data("email", ""))).toObject();
String createdUserId = createdUser.getString("id");

// Update the created user
icmClient.json(user(createdUserId), put(content(new JSONObject().put("name", "Jim Bob The Second"))));

// Delete the updated user
icmClient.json(user(createdUserId), delete());


Copyright 2015 Singlewire LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

You can’t perform that action at this time.