from voximplant.apiclient import VoximplantAPI, VoximplantException

if __name__ == "__main__":
    voxapi = VoximplantAPI("credentials.json")
    
    # Change the application name.

    APPLICATION_ID = 1
    APPLICATION_NAME = "myapp11"
    
    try:
        res = voxapi.set_application_info(application_id=APPLICATION_ID,
            application_name=APPLICATION_NAME)
        print(res)
    except VoximplantException as e:
        print("Error: {}".format(e.message))
    

from voximplant.apiclient import VoximplantAPI, VoximplantException

if __name__ == "__main__":
    voxapi = VoximplantAPI("credentials.json")
    
    # Change the application name.

    APPLICATION_ID = 1
    APPLICATION_NAME = "myapp11"
    
    try:
        res = voxapi.set_application_info(application_id=APPLICATION_ID,
            application_name=APPLICATION_NAME)
        print(res)
    except VoximplantException as e:
        print("Error: {}".format(e.message))
    

# Change the application name.