Context: Our website will allow users to subscribe to an online service, via a form. The user will visit our homepage, decide to subscribe to the free trial, fill in the form with name, last name and email adress, and click on 'send'. Then he will receive an email to confirm his subscription.
Objective: Our website and form already exist, we need the form to call an API and submit informations to it.
Website & form presentation:
Our website is built with Wordpress MU and self hosted. The subscription form is built with the cforms II plug in.
For calling the needed API we want to use these technologies:
* call as REST webservice located normally on a URL which is the entry point to the webservice.
* authentication and validation of the request use OAuth.
* the webservice responds using the JSON format, which would need to be parsed to be able to confirm the subscription to the user.