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.

In Oauth2 wrapper file a function is missing so if i integrate it by own is that work then.

ChrisC248
Regular Participant

In Oauth2 wrapper file a function is missing so if i integrate it by own is that work then.

Hi,

 

I am using Oauth2 wrapper files, Downloaded files from these URL

https://github.com/constantcontact/ctct_php_library

and if i see the ConstantContact.php file there is missing a function getCampaignByID($ID)

.This function is oauth1 wrapper files.

-So I tried implementing same code in the Oauth2 wrapper and it's working. So I want to ask my this new function will not breach any security thing. plese suggest.

-And if my code is helpful for you please update your repository and made the files consistant with other wrapper files.

1 REPLY 1
Shannon_W
Employee

Hi,

 

You are correct, we should have getCampaignByID in the wrapper you referenced, and we do not.  I am going to add that function to the main library (the one your referenced) shortly.  There isn't a security concern around that function for OAuth 2.

 

Thanks for pointing that out!

 

 

Best Regards,

Shannon W.

API Support Specialist

Developer Portal

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

Visit Page