-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample.py
More file actions
29 lines (24 loc) · 791 Bytes
/
example.py
File metadata and controls
29 lines (24 loc) · 791 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
from arkesel_python import ArkeselSMS
from arkesel_python import SmsInfo
from arkesel_python import ArkeselOtp
from arkesel_python import Contacts
def sendBulkText():
letter = ArkeselSMS()
print (letter.sendSms("user" , "example file text" , ["0XXXXXXXXX"]))
# sendBulkText()
def checkBalance():
checker= SmsInfo()
print (checker.smsBalance())
# checkBalance()
def authenticate():
send = ArkeselOtp()
print (send.sendOtp(5, 6, "sms","This is OTP from tester, %otp_code%","0XXXXXXXXX","tester","numeric"))
# authenticate()
def VerifyCode():
auth=ArkeselOtp()
print (auth.verifyOtp("XXXXXX" ,"0XXXXXXXXX"))
# VerifyCode()
def addNumber():
newNum = Contacts()
print (newNum.add_contact_to_group('new',[{"phone_number":"0202087572"},]))
# addNumber()