public void addContacts(String url, ContactList contactList, boolean completed) throws Exception { String requestString = GsonUtils.getJsonWithExposeFromObject(contactList, ContactList.class); if (completed) { url = url + "?completed=true"; } httpRequestUtils.postData(url, "application/json", null, requestString); }
public String getContactsInCurrentPlatform() { return httpRequestUtils.getResponse( getPlatformContactUrl() + "?mtexter=true", "application/json", "application/json"); }
public String getGoogleContacts(int page) { return httpRequestUtils.getResponse( getGoogleContactUrl() + "?page=" + page, "application/json", "application/json"); }