Skip to main content
Version: 5.7.0

GetScheduledCloudScripts

Retrieves list of scheduled cloud scripts having a scheduled start time less than or equal to the specified scheduledStartTime time (UTC time in milliseconds).

ServiceOperation
scriptGET_SCHEDULED_CLOUD_SCRIPTS

Method Parameters

ParameterDescription
startDateUTCReturn scripts that are scheduled to run before this specified time.

Usage

http://localhost:3000
int startDateInUTC = 1437579786000;

SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.ScriptService.GetScheduledCloudScripts(startDateInUTC, successCallback, failureCallback);
JSON Response
{
"data": {
"scheduledJobs": [
{
"gameId": "20005",
"description": null,
"jobId": "5fbc8729-5123-4dca-8644-d78edcb7f712",
"localTime": null,
"createdAt": 1512750600574,
"runStartTime": 0,
"playerSessionId": null,
"scheduledStartTime": 1512754200552,
"scriptName": "emptyScript",
"jobType": "CloudCode",
"parameters": null,
"updatedAt": 1512750600574
},
{
"gameId": "20005",
"description": null,
"jobId": "8267199b-5567-4771-91ca-c25b61f83ccd",
"localTime": null,
"createdAt": 1512750610258,
"runStartTime": 0,
"playerSessionId": null,
"scheduledStartTime": 1512754210258,
"scriptName": "emptyScript",
"jobType": "CloudCode",
"parameters": null,
"updatedAt": 1512750610258
},
{
"gameId": "20005",
"description": null,
"jobId": "4c9d06bf-48e4-4308-8734-9f74993f8e4f",
"localTime": null,
"createdAt": 1512750683157,
"runStartTime": 0,
"playerSessionId": null,
"scheduledStartTime": 1512754283157,
"scriptName": "emptyScript",
"jobType": "CloudCode",
"parameters": null,
"updatedAt": 1512750683157
}
]
},
"status": 200
}