from__future__importprint_functionimporttimeimportbraangoimportbraango.modelsimportbraango.apisfrombraango.restimportApiExceptionfrompprintimportpprint''' @author braango Sample code showing how to delete one SMS number for a given personnel'''#TEST auth token. Please contact#sales@braango.com to have one#created for youbraango.configuration.api_key['auth_token']='ISNWF0P30WM0CMK'# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# braango.configuration.api_key_prefix['auth_token'] = 'Bearer'# create an instance of the API classapi_instance=braango.SmsApi()# str | id of _sub_dealer_subdealerid='subdealers2004'# str | id of _personnel_salespersonid='c5313913-5768-4eef-b5ea-447cc8f5aec3'# str | API Key to access this dealer's resources. #Value was returned when create_account api was called and #dealer was created first time api_key='ISNMdzuNiKG7jhl9d9v'# str | Dealer or partner is accessing this APIaccount_type='partner'# str | sms number to be deletednumber='4088723449'try:# Delete One SMSapi_response=api_instance.delete_onesms(subdealerid,salespersonid,number,api_key,account_type)pprint(api_response)exceptApiExceptionase:print("Exception when calling SmsApi->delete_onesms: %s\n"%e)
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.