Hi All, I am starting to look at adding the ability for customer's of our proprietry software, to add lists/email accounts from an option inside our software suite. This is not a web based app. .
I have read that we need a redirect URL etc for multiple customers, however, snce this is not a web based app, I am not sure how to proceed.
1. Each of our customers will have there own Constant Contact account
2. Access to adding list name/email account will be availbale from a non web based app running on a private server owned by the customer. (I am looking to use command line PHP).
How would I go about with the authorization for each customer?
In this case, you would use the OAuth client authentication flow. In order to do that, two things are required:
If you can do these two things, you would implement the OAuth client flow, which follows these steps:
Once step 4 is reached, the URL for the redirect will include access token info in the URL that is redirected to. I your redirect URL was http://localhost (the default value), then this would be in the following format:
You can then get the Access Token by simply parsing the data that is included in the URL of the browser object that your application is controlling. This token can then be stored for future use. In order for this to work, it is often best to use a redirect URI that will load, ensuring that the browser allows you to read the URL that is loaded. For this, I would suggest setting the Redirect URI for your API key to match that of the website that best represents this proprietary tool. the redirect URI for API keys can be changed by logging in to your developer account with Mashery and editing the application that you registered.
For reference purposes, here is the format for getting your Authorization URL:
If you have any questions about this process, please feel free to ask!
View API documentation, code samples, get your API key.Visit Page