-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathvms.py
More file actions
29 lines (14 loc) · 650 Bytes
/
Copy pathvms.py
File metadata and controls
29 lines (14 loc) · 650 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import os
from smsapi.client import SmsApiPlClient
access_token = os.getenv('SMSAPI_ACCESS_TOKEN')
client = SmsApiPlClient(access_token=access_token)
def basic_send_vms():
client.vms.send(to='some-number', tts='some text message')
def send_vms_from_file():
client.vms.send(to='some-number', file='/path/to/vms/file')
def send_vms_to_contacts_group():
client.vms.send_to_group(group='some-group', tts='some text message')
def send_vms_using_another_lector():
client.vms.send(to='some-number', tts='some text message', tts_lector='maja')
def remove_scheduled_vms():
client.vms.remove_scheduled(id='scheduled-vms-id')