We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

Re: Java API: Some times CCApi2 unable to connect.

gouravk4
Participant

Re: Java API: Some times CCApi2 unable to connect.

I am using java sdk which is available on github. I created a connection using CCApi2 and it was working fine but now CCApi2 giving null some times. 

Here is code 

api = new CCApi2(apiKey , accessToken);
AccountSummaryInformation accountSummaryInformation = api.getAccountService()
.getAccountSummaryInformation()
.execute()
.body();
accountSummaryInformation.getFirstName(); //fetch the name for testing connection

 

Thanks

1 REPLY 1
David_B.
Moderator

Hello,

Thank you for reaching out to Constant Contact API Developer Support.

Are you seeing inconsistent results for the same account, or is your integration used with multiple accounts and only some accounts return null when this call is made?

Regards,

David B.
Tier II API Support Engineer

Developer Portal

View API documentation, code samples, get your API key.

Visit Page