The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

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

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured