Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Dec 17, 2019 19:13

Command: gateway

Subcommand: sms

Supported Platforms: Native,Selenium,Appium

Supported OS: Android, iOS

Sends an SMS message to the selected destination

Description

It is possible to select multiple destinations that may include devices, users, and phones.

At least one destination must be selected.

When specifying a device via the to.device parameter, verify it has a SIM card, which is required for SMSing that device.

When specifying a number via the to.number parameter, replace the '+' character with %2B in the sent string.

Parameters

 * Mandatory parameter

Request & Response 

Request
https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-09_12_44_59_31771?operation=command&securityToken=<your_token>&command=gateway&subcommand=sms&param.to.device=FA53XYJ18894&param.body=my%20body
JSON Response
{
  "executionId": "john@perfectomobile.com_controller_16-11-09_12_44_59_31771",
  "reason": "Success",
  "timer.elapsed": "16",
  "testGridReportUrl": "https://mycloud.reporting-01.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-11-09_12_44_59_31771",
  "timer.ux": "0",
  "singleTestReportUrl": "https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161109/controller_16-11-09_12_44_59_31771.xml&ownerId=john@perfectomobile.com&sharingCode=993fbf5a-7d97-4390-892e-734fac09c4dd",
  "description": "Success",
  "timer.system": "16",
  "reportKey": "PRIVATE:controller/161109/controller_16-11-09_12_44_59_31771.xml",
  "completed": "true",
  "flowEndCode": "SUCCEEDED",
  "timer.device": "0"
}