25 lines
540 B
Python
25 lines
540 B
Python
# coding:utf-8
|
|
from __future__ import print_function
|
|
|
|
import json
|
|
|
|
from volcengine.sms.SmsService import SmsService
|
|
from volcengine.const.Const import *
|
|
|
|
if __name__ == '__main__':
|
|
# cn
|
|
sms_service = SmsService()
|
|
|
|
# call below method if you dont set ak and sk in $HOME/.volc/config
|
|
sms_service.set_ak('ak')
|
|
sms_service.set_sk('sk')
|
|
# sms_service.set_host('host')
|
|
|
|
body = {
|
|
"subAccountName": "smsAccount",
|
|
"desc": "desc",
|
|
}
|
|
|
|
resp = sms_service.insert_sms_sub_account(body)
|
|
print(resp)
|