forked from agilecrm/java-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Java API Client Connector for Agile
License
yaswanthagile/java-api
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
# Agile CRM Java API Agile CRM is a an new breed CRM. You can sign up here - http://agilecrm.com Requirements ============ Java 1.5 and later. Installation ============ You'll need to manually download the following JARs: http://www.java2s.com/Code/Jar/j/Downloadjerseyclient115jar.htm http://www.java2s.com/Code/Jar/j/Downloadjsonjar.htm http://www.java2s.com/Code/Jar/j/Downloadjacksoncoreasl192jar.htm * jersey-client-1.15.jar * jersey-core-1.15.jar * jersey-json-1.15.jar * jackson-core-asl-1.9.2.jar * jackson-mapper-asl-1.9.2.jar * json.jar Usage ===== TestAgile.java import java.util.List; import com.agilecrm.api.APIManager; import com.agilecrm.api.ContactAPI; import com.agilecrm.stubs.Contact; public class TestAgile { public static void main(String[] args) { try { String baseUrl = "https://<Your Domain>.agilecrm.com/dev"; String userName = "AgileCRM username"; String apiKey = "AgileCRM apikey"; // Create a connection to Agile CRM APIManager apiManager = new APIManager(baseUrl, userName, apiKey); // Get the Contact API with configured resource ContactAPI contactApi = apiManager.getContactAPI(); // --------------------- Get contacts ----------------------------- List<Contact> contacts = contactApi.getContacts(); System.out.println("All contacts.. " + contacts); } catch (Exception e) { System.out.println("Exception message.. " + e.getMessage()); e.printStackTrace(); } } } See [TestContact.java] for more examples.
About
Java API Client Connector for Agile
Resources
License
Stars
Watchers
Forks
Releases
No releases published