Working with application from Node SDK
Node SDK offers you a way to handle application from the backend of your system.
Use your NodeJS code to make changes on the application level. This is possible through the following Video API calls.
NodeJS SDK Application Methods
- get Read application.
ZiggeoSdk.Application.get([callbacks])
This method returns JSON - update Update application.
ZiggeoSdk.Application.update(arguments, [callbacks])
- volatile Will this object automatically be deleted if it remains empty?
- name Name of the application
- auth_token_required_for_create Require auth token for creating videos
- auth_token_required_for_update Require auth token for updating videos
- auth_token_required_for_read Require auth token for reading videos
- auth_token_required_for_destroy Require auth token for deleting videos
- client_can_index_videos Client is allowed to perform the index operation
- client_cannot_access_unaccepted_videos Client cannot view unaccepted videos
- enable_video_subpages Enable hosted video pages
This method returns JSONExample:var app_token = process.argv[2]; var private_key = process.argv[3]; var Ziggeo = require("../index.js"); var ZiggeoSdk = new Ziggeo(app_token, private_key); var application_args = { name: "Test Name", // change name of the Application auth_token_required_for_create: true // set option to require auth token when creating new video. } ZiggeoSdk.Application.update(application_args, { success: function(data){ console.log(data); }, failure: function(data){ console.log(data); } });
- get_stats Read application stats
ZiggeoSdk.Application.get_stats(arguments, [callbacks])
- period Optional. Can be 'year' or 'month'.
This method returns JSON