Skip to content

Example: connection parameters

Stefano Varesi edited this page Apr 9, 2015 · 1 revision

To successfully open a connection to the ContactLab SOAP API you have to provide valid credentials. In order to avoid repeating your API key and user key in your code, you can set them in an class and include everywhere needed. This is the pattern used in all these examples: refer to this code whenever you see the Parameters class in the examples code.

package com.contactlab.api.ws.examples;

public interface Parameters {
    String apiKey = "YOUR API KEY";
    String userKey = "YOUR USER KEY";
}