After determining the scopes your application requires, collect the information Yahoo! needs to issue a Consumer Key to the fourth party. You can achieve this through an HTML form that uses a POST method to submit the required information to the following URL endpoint:
The form submission must trigger a pop-up window that displays the above URL endpoint, where Yahoo! provides Yahoo! Information in one of two ways:
return_toendpoint provided with your form.
The pop-up window that you display must be 545 pixels wide and 650 pixels high as shown in the following code snippet:
For an example of how the form can look, refer to the following diagram, which shows both methods of providing the Consumer Key:
Here is an example form along with sample values you can use in the form:
Some required information that you must collect in the form includes:
For more information on each of these required parameters, refer to the Parameter Reference in this guide.
Yahoo! provides button images that you can use for the submit button on your form. You can use these buttons, labeled "Get Yahoo! Information" and "Update Yahoo! Information," to create and update Consumer Keys, respectively.
If your application uses multiple scopes, you can specify more than one through a
comma separated string as follows:
For more information on all the available fields, as well as those that are required with each scope, refer to Create Consumer Key API Reference.