So I am new to the java api and after a lot of research I'm still confused on how to do simple things such as creating a contact and adding it to a list. Let me start with the sdk. I added the maven dependancy suggested in the sdk readme. <dependencies>
<dependency>
<groupId>com.constantcontact</groupId>
<artifactId>java-sdk</artifactId>
<version>5.0.3</version>
</dependency>
</dependencies> Once downloaded and added to the project the jar only contains the service classes and not the other object classes such as Contact, Address, and its missing all factory classes. See the image below for what the jar contains: I'm not sure what I can do with only the services. When I look at the javadoc it looks like I eventually want to a method in ContactService.java Call<Contact> createContact(@Body Contact contact, @Query("action_by") OptInSource optInSource); but how can I do this without the Contact class or the OptInSource classes? Second issue: maybe this is explained in the example files or something but they seem to be missing for the java sdk. All the other sdks have examples included where are the java ones? .net examples https://github.com/constantcontact/.net-sdk/tree/master/ContactExample ruby examples https://github.com/constantcontact/ruby-sdk/tree/master/examples php examples https://github.com/constantcontact/php-sdk/tree/master/examples iOS examples https://github.com/constantcontact/ios-sdk/tree/master/Examples java examples ? don't exist I found this page in the dev docs: https://developer.constantcontact.com/libraries/sample-code.html All of the languages have links to examples, including java. The issue is when you click on the java examples it takes you to a 404 page. The 2 java links on the above page are: https://github.com/constantcontact/java-sdk/tree/master/AndroidExamples/CreateAndScheduleCampaign https://github.com/constantcontact/java-sdk/tree/master/AndroidExamples/AddOrUpdateContacts If you could give me some guidance on how to get started. Is the jar missing classes I need? Are there java examples anywhere? All I need to do with the api is to create a contact and assign it a listId, if the contact exists then I update the list. That seems like super easy stuff, but I'm struggling to understand the jar and documentation.
... View more