Progress will discontinue Telerik Platform on May 10th, 2018. Learn more

businessLogic.invokeCloudFunction

businessLogic.invokeCloudFunction

This method offers alternative signatures:

businessLogic.invokeCloudFunction(funcName, params)

Signature

businessLogic.invokeCloudFunction(funcName, params)

Description

Invokes a Cloud Function from the app's Business Logic layer.

Return Type

Promise - A promise resolved on successful response and rejected on error response.

Parameters

Parameter Name Type Default Description
funcName String The name of the function to invoke.
params Object An object containing all invocation request parameters.
[params.method] HttpMethod GET HTTP request method.
[params.queryStringParams] Object Parameters to be passed in the query string.
[params.data] Object Data to be sent with the request.
[params.authHeaders] Boolean true Whether to send the credentials of the currently logged-in user.
[params.headers] Object Additional headers to be sent with the request.
[params.customParameters] Object Custom parameters to be sent with the request. They will be accessible in the Cloud Function code.


businessLogic.invokeCloudFunction(funcName, params, success, error)

Signature

businessLogic.invokeCloudFunction(funcName, params, success, error)

Description

Invokes a Cloud Function from the app's Business Logic layer.

Parameters

Parameter Name Type Default Description
funcName String The name of the function to invoke.
params Object An object containing all invocation request parameters.
[params.method] HttpMethod GET HTTP request method.
[params.queryStringParams] Object Parameters to be passed in the query string.
[params.data] Object Data to be sent with the request.
[params.authHeaders] Boolean true Whether to send the credentials of the currently logged-in user.
[params.headers] Object Additional headers to be sent with the request.
[params.customParameters] Object Custom parameters to be sent with the request. They will be accessible in the Cloud Function code.
success function Success callback function.
error function Error callback function.


Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.