Send RCS from GitHub Actions.
- An account at seven.io. Sign up for free!
- Account balance and an API Key.
-
Set up your credentials secrets in your repository settings by specifying
SEVEN_API_KEY
. -
Add the following to your workflow
- name: 'Send RCS'
uses: seven-io/github-action-rcs@master
with:
from: 'Tommy Tester'
text: 'seven.io wishes you a nice day!'
to: '+4901234567890'
env:
SEVEN_API_KEY: ${{ secrets.SEVEN_API_KEY }}
apiKey
Required
An API Key from seven.io. Alternatively use environment variable SEVEN_API_KEY.
to
Required
The recipient number for your RCS message. This can also be a contact name or a group name.
text
Required
Text of the RCS message. To send a simple RCS message (without images, suggested replies, etc.), only enter the plain text of the message here. Otherwise, use an RCS object.
delay
Delayed dispatch at given time: Unix-Timestamp or format yyyy-mm-dd hh:ii
foreign_id
Foreign ID returned in callbacks. Allowed characters: a-z, A-Z, 0-9, .-_@
from
The unique ID of your agent. You can view this in the Settings of your account. If not specified, the first RCS-capable sender will be used.
label
Custom label. Allowed characters: a-z, A-Z, 0-9, .-_@
performance_tracking
Activate click and performance tracking for URLs found in the RCS text. This also activates the URL shortener.
ttl
Specifies the validity period of the RCS in minutes. The default is 2880, i.e. 48 hours.
response
Returns a return code from the API.