Service callback
 

Service callback is used to send an http request back to your application servers from the widgelet. This can be used to get data from the server side of the widgelet without having to create an overlay. This method is asynchronous.The widgelet callback URL is invoked with the specified Query String and the response is provided back to the widgelet in the callback function.

 
HTTP Request
 
RoamAbout.httpRequest(callback, context, query)Samples
 
Name Optional/Required Description
callback Required The function to call after processing the request with the status and result data.
context Optional The context text to pass for your reference.
query Required To send the query string for Http request. This will automatically append the given query string with the callback URL in the Http request.
 
Name Description
status The status of the action performed, It would be 0 for successful response.
data The response text to the callback function. For this API it will contain response text from the server in the data field.
context The context parameter that you passed in the request.