-
Notifications
You must be signed in to change notification settings - Fork 1
Example: campaign retrieval
Stefano Varesi edited this page Apr 9, 2015
·
1 revision
package com.contactlab.api.ws.examples;
import com.contactlab.api.ws.ClabService;
import com.contactlab.api.ws.ClabService_Service;
import com.contactlab.api.ws.domain.AuthToken;
import com.contactlab.api.ws.domain.Campaign;
public class GetCampaignById {
public static void main(String[] args) {
ClabService clabService = new ClabService_Service().getClabServicePort();
AuthToken token = clabService.borrowToken(Parameters.apiKey, Parameters.userKey);
int campaignId = 1368;
Campaign campaign = clabService.getCampaign(token, campaignId);
System.out.println("Recovered campaign " + campaign.getIdentifier() + " ");
clabService.invalidateToken(token);
}
}