Documentation

Use your Python code to make changes on the application level. This is possible through the following Video API calls.

Fork me on GitHub
  • get
    Read application.
    ziggeo.application().get()
    
    This method returns JSON
  • update
    Update application.
    ziggeo.application().update(arguments = None)
    
    1. volatile Will this object automatically be deleted if it remains empty?
    2. name Name of the application
    3. auth_token_required_for_create Require auth token for creating videos
    4. auth_token_required_for_update Require auth token for updating videos
    5. auth_token_required_for_read Require auth token for reading videos
    6. auth_token_required_for_destroy Require auth token for deleting videos
    7. client_can_index_videos Client is allowed to perform the index operation
    8. client_cannot_access_unaccepted_videos Client cannot view unaccepted videos
    9. enable_video_subpages Enable hosted video pages
    This method returns JSON
    Example:
    import sys
    
    from Ziggeo import Ziggeo
    
    if(len(sys.argv) < 3):
        print ("Error\n")
        print ("Usage: $>python application_update.py YOUR_API_TOKEN YOUR_PRIVATE_KEY\n")
        sys.exit()
    
    api_token = sys.argv[1]
    private_key = sys.argv[2]
    ziggeo = Ziggeo(api_token, private_key)
    application_args = {}
    application_args['name'] = "new name" # change the application's name
    application_args['auth_token_required_for_create'] = True # set option to require auth token when creating new video.
    ziggeo.application().update(application_args)
    
    
  • get_stats
    Read application stats
    ziggeo.application().get_stats(arguments = None)
    
    1. period Optional. Can be 'year' or 'month'.
    This method returns JSON