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

Highlighted
New Member

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

Tags (1)
1 REPLY 1
Highlighted
Moderator

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

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

Register for our "Making Sense of Online Marketing for Education" Webinar

Join us on Thursday, August 27th at 2pm ET for a free one-hour webinar where we will be covering how to incorporate online marketing into your educational marketing strategy.

Read More
Featured