Skip to content

egaiter/java-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Constant Contact JAVA SDK

Build Status

Installation

In order to use the Constant Contact SDK please follow these steps:

  1. This project builds with Apache Maven. Running maven clean install will build and test the source and install its artifacts and dependencies into your maven repository. At this point, you can add the Constant Contact SDK as a dependency to other projects. If you do not wish to build with Maven, consult the pom.xml file to examine the dependencies the Constant Contact SDK has. For example, it requires Jackson for JSON processing.

Maven

<dependency>
  <groupId>com.constantcontact</groupId>
  <artifactId>constantcontact</artifactId>
  <version>4.4.0</version>
</dependency>

Documentation

The Javadoc is hosted at http://constantcontact.github.io/java-sdk

API Documentation is located at http://developer.constantcontact.com/docs/developer-guides/api-documentation-index.html

Usage

  1. In the file you wish to use the SDK include the following code:

import com.constantcontact.ConstantContact;

  1. Create a ConstantContact object

ConstantContact constantContact = new ConstantContact("<apiKey>", "<accessToken>");

The API key represents the Application Key provided by Constant Contact for a specific application. The access token is obtained by performing the Constant Contact Authentication process.

  1. Begin using the SDK functionality using the ConstantContact object.

######Example for getting an contact

Contact contact = constantContact.getContact(int contactId);

######Example for getting contact list

ResultSet<Contact> contactList = constantContact.getContacts();

About

Constant Contact Java SDK for v2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%