- Loading...
- No images or files uploaded yet.
|
|
OpenBoxClientCallbackUrlOpenBox Action: Popup action: Client Callback URL
This section refers to popup actions only.
When a popup action is executed by the user, Box.net makes a callback request to your initial callback URL with the callback parameters you specify. However, in some cases a additional callback request, known as a client callback, must be made. This happens when the client can't get all the information it needs in a single call.
Here are two examples of this. The first doesn't require a client callback URL, while the second does.
Examples
1. A document editor that does not need the client callback URLThis popup action executes a REST call with a download_file_url callback parameter.
http://www.doceditor.com/service?apikey=abc&file=&redirect=
2. A document editor that needs the client callback URLThis popup action executes a REST call with a file callback parameter.
Client Callback URL Request Format
The POST to the client callback URL takes the response of the initial callback URL and sends it to the same URL with the same data as the original callback.
If your callback parameters are in the REST format, and you have two GET parameters and a POST parameter, your client callback URL gets a request like this:
URL: http://your-client-callback-url.com/?get_param1=value1&get_param2=value2
POST data: post_param1=value1 initial_callback_response=
If your callback parameters are in XML or SOAP format, your client callback URL gets a request like this:
URL: http://your-client-callback-url.com/
POST data: xml=..... initial_callback_response=
The response is either a 302 redirect to get the user to the correct URL, or the HTML for an interface to show the user. Most often this URL will point to a separate API method or custom script developed especially for OpenBox, which can parse the results of the initial callback URL.
Need additional assistance? Please feel free to Contact us
|