OXYGEN
HomeGitHubReleasesCommunity
  • Welcome to Oxygen
  • About
    • What is Oxygen?
    • Getting Started (Videos)
      • Oxygen IDE Controls Overview
      • Recording a Web Test
      • Oxygen Commands Explained
    • Getting help
  • Download and work with Oxygen
    • Download & Installation
      • Oxygen IDE Installation
      • Oxygen for Mobile Installation
      • Oxygen for Windows Desktop Automation Setup
      • Oxygen for Mac Installation
        • Mac Installation Troubleshooting
      • Oxygen CLI Installation
      • Java Installation Instructions
      • Recording Troubleshooting
    • Start working with Oxygen
      • Getting Started - Web
        • Introduction - Web Testing
        • Recording a Web Test
        • Creating a Web Test
        • Sample Project - Web Test
      • Getting Started - Mobile
        • Introduction - Mobile Testing
        • Recording a Test on Mobile
        • Creating a Test - Mobile
        • Sample Project - Mobile
      • Getting Started - Oxygen for Windows Desktop Automation
      • Getting Started- Oxyge CLI
        • Running a Test Script on Windows
        • Running Multiple Tests (Suites) on Windows
    • Oxygen Modules
      • assert
      • date
      • db
      • email
      • eyes
      • http
      • log
      • mailinator
      • mob
      • pdf
      • proxy
      • serial
      • shell
      • soap
      • twilio
      • utils
      • web
      • win
    • Test Parameters
  • Cloud Providers
    • Sauce Labs
    • Lambda Test
    • TestObject
  • Advanced programming in Oxygen
    • Project Configuration
    • Locating Elements
    • Page Objects
    • Environments
    • Code Components
Powered by GitBook
On this page
  • getLastSentApiSms
  • getLastSms
  • init
  • sendSms

Was this helpful?

  1. Download and work with Oxygen
  2. Oxygen Modules

twilio

Provides methods for working with Twilio service.

getLastSentApiSms

Retrieves last SMS message sent from API.

Parameters:

Name
Type
Description

removeOnRead

Boolean

Specifies whether to delete the message after reading it.

timeout

Number

Timeout in milliseconds for waiting for the message to arrive.

notOlderThan

Number

optional Retrieve message only if it arrived not before the given time (in ms). Default is 4 minutes.

Returns:

String - SMS text.

getLastSms

Retrieves last SMS message.

Parameters:

Name
Type
Description

removeOnRead

Boolean

Specifies whether to delete the message after reading it.

timeout

Number

Timeout in milliseconds for waiting for the message to arrive.

notOlderThan

Number

optional Retrieve message only if it arrived not before the given time (in ms). Default is 4 minutes.

fromNumber

String

optional From number to filter message

Returns:

String - SMS text.

init

Set Twilio authentication details.

Parameters:

Name
Type
Description

accountSid

String

Account SID.

authToken

String

Authentication token.

sendSms

Send an SMS.

** Usage example:**

twilio.init('Account Sid', 'Account Token');
twilio.sendSms('+1xxxxxxxxxx', '+972xxxxxxxxx', 'Hello World!');

Parameters:

Name
Type
Description

from

String

Phone number to send from.

to

String

Phone number to send to.

message

String

Message to send.

Returns:

String - Message SID.

PrevioussoapNextutils

Last updated 2 years ago

Was this helpful?