ziggeo
Advanced tools
Comparing version 0.1.2 to 0.1.3
60
index.js
@@ -10,2 +10,4 @@ var ZiggeoSdk = function (token, private_key, encryption_key) { | ||
this.EffectProfileProcess = new ZiggeoSdk.EffectProfileProcess(this.Connect); | ||
this.MetaProfiles = new ZiggeoSdk.MetaProfiles(this.Connect); | ||
this.MetaProfileProcess = new ZiggeoSdk.MetaProfileProcess(this.Connect); | ||
}; | ||
@@ -273,2 +275,52 @@ | ||
ZiggeoSdk.MetaProfileProcess = function (Connect) { | ||
this.Connect = Connect; | ||
}; | ||
ZiggeoSdk.MetaProfileProcess.prototype.index = function (meta_token_or_key, callbacks) { | ||
this.Connect.getJSON('/v1/metaprofiles/' + meta_token_or_key + '/process', callbacks); | ||
}; | ||
ZiggeoSdk.MetaProfileProcess.prototype.get = function (meta_token_or_key, token_or_key, callbacks) { | ||
this.Connect.getJSON('/v1/metaprofiles/' + meta_token_or_key + '/process/' + token_or_key + '', callbacks); | ||
}; | ||
ZiggeoSdk.MetaProfileProcess.prototype.destroy = function (meta_token_or_key, token_or_key, callbacks) { | ||
this.Connect.destroy('/v1/metaprofiles/' + meta_token_or_key + '/process/' + token_or_key + '', callbacks); | ||
}; | ||
ZiggeoSdk.MetaProfileProcess.prototype.create_video_analysis_process = function (meta_token_or_key, callbacks) { | ||
this.Connect.postJSON('/v1/metaprofiles/' + meta_token_or_key + '/process/analysis', callbacks); | ||
}; | ||
ZiggeoSdk.MetaProfileProcess.prototype.create_audio_transcription_process = function (meta_token_or_key, callbacks) { | ||
this.Connect.postJSON('/v1/metaprofiles/' + meta_token_or_key + '/process/transcription', callbacks); | ||
}; | ||
ZiggeoSdk.MetaProfileProcess.prototype.create_nsfw_process = function (meta_token_or_key, data, callbacks) { | ||
this.Connect.postJSON('/v1/metaprofiles/' + meta_token_or_key + '/process/nsfw', callbacks, data); | ||
}; | ||
ZiggeoSdk.MetaProfiles = function (Connect) { | ||
this.Connect = Connect; | ||
}; | ||
ZiggeoSdk.MetaProfiles.prototype.create = function (data, callbacks) { | ||
this.Connect.postJSON('/v1/metaprofiles/', callbacks, data); | ||
}; | ||
ZiggeoSdk.MetaProfiles.prototype.index = function (data, callbacks) { | ||
this.Connect.getJSON('/v1/metaprofiles/', callbacks, data); | ||
}; | ||
ZiggeoSdk.MetaProfiles.prototype.get = function (token_or_key, callbacks) { | ||
this.Connect.getJSON('/v1/metaprofiles/' + token_or_key + '', callbacks); | ||
}; | ||
ZiggeoSdk.MetaProfiles.prototype.destroy = function (token_or_key, callbacks) { | ||
this.Connect.destroy('/v1/metaprofiles/' + token_or_key + '', callbacks); | ||
}; | ||
ZiggeoSdk.Streams = function (Connect) { | ||
@@ -354,2 +406,6 @@ this.Connect = Connect; | ||
ZiggeoSdk.Videos.prototype.stats_bulk = function (data, callbacks) { | ||
this.Connect.postJSON('/v1/videos/stats_bulk', callbacks, data); | ||
}; | ||
ZiggeoSdk.Videos.prototype.download_video = function (token_or_key, callbacks) { | ||
@@ -363,2 +419,6 @@ this.Connect.getBinary('/v1/videos/' + token_or_key + '/video', callbacks); | ||
ZiggeoSdk.Videos.prototype.get_stats = function (token_or_key, callbacks) { | ||
this.Connect.getJSON('/v1/videos/' + token_or_key + '/stats', callbacks); | ||
}; | ||
ZiggeoSdk.Videos.prototype.push_to_service = function (token_or_key, data, callbacks) { | ||
@@ -365,0 +425,0 @@ this.Connect.postJSON('/v1/videos/' + token_or_key + '/push', callbacks, data); |
{ | ||
"name": "ziggeo", | ||
"description": "Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your site, service or app. This is the NodeJS Server SDK.", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"author": "Ziggeo", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/Ziggeo/ZiggeoNodeSdk.git", |
144
README.md
@@ -1,2 +0,2 @@ | ||
# Ziggeo Node.js Server SDK 0.1.2 | ||
# Ziggeo Node.js Server SDK 0.1.3 | ||
@@ -116,2 +116,15 @@ Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only | ||
#### Stats Bulk | ||
Get stats for multiple videos by tokens or keys. | ||
```node | ||
ZiggeoSdk.Videos.stats_bulk(arguments, [callbacks]) | ||
``` | ||
Arguments | ||
- tokens_or_keys: *Comma-separated list with the desired videos tokens or keys (Limit: 100 tokens or keys).* | ||
- summarize: *Boolean. Set it to TRUE to get the stats summarized. Set it to FALSE to get the stats for each video in a separate array. Default: TRUE.* | ||
#### Download Video | ||
@@ -137,2 +150,12 @@ | ||
#### Get Stats | ||
Get the video's stats | ||
```node | ||
ZiggeoSdk.Videos.get_stats(token_or_key, [callbacks]) | ||
``` | ||
#### Push To Service | ||
@@ -528,2 +551,121 @@ | ||
### MetaProfiles | ||
The meta profiles resource allows you to access and create meta profiles for your app. Each meta profile may contain one process or more. | ||
#### Create | ||
Create a new meta profile. | ||
```node | ||
ZiggeoSdk.MetaProfiles.create(arguments, [callbacks]) | ||
``` | ||
Arguments | ||
- key: *Meta Profile profile key.* | ||
- title: *Meta Profile profile title.* | ||
#### Index | ||
Get list of meta profiles. | ||
```node | ||
ZiggeoSdk.MetaProfiles.index(arguments, [callbacks]) | ||
``` | ||
Arguments | ||
- limit: *Limit the number of returned meta profiles. Can be set up to 100.* | ||
- skip: *Skip the first [n] entries.* | ||
- reverse: *Reverse the order in which meta profiles are returned.* | ||
#### Get | ||
Get a single meta profile | ||
```node | ||
ZiggeoSdk.MetaProfiles.get(token_or_key, [callbacks]) | ||
``` | ||
#### Delete | ||
Delete the meta profile | ||
```node | ||
ZiggeoSdk.MetaProfiles.destroy(token_or_key, [callbacks]) | ||
``` | ||
### MetaProfileProcess | ||
The process resource allows you to directly access all process associated with a single meta profile. | ||
#### Index | ||
Return all processes associated with a meta profile | ||
```node | ||
ZiggeoSdk.MetaProfileProcess.index(meta_token_or_key, [callbacks]) | ||
``` | ||
#### Get | ||
Get a single process | ||
```node | ||
ZiggeoSdk.MetaProfileProcess.get(meta_token_or_key, token_or_key, [callbacks]) | ||
``` | ||
#### Delete | ||
Delete the process | ||
```node | ||
ZiggeoSdk.MetaProfileProcess.destroy(meta_token_or_key, token_or_key, [callbacks]) | ||
``` | ||
#### Create Video Analysis Process | ||
Create a new video analysis meta process | ||
```node | ||
ZiggeoSdk.MetaProfileProcess.create_video_analysis_process(meta_token_or_key, [callbacks]) | ||
``` | ||
#### Create Audio Transcription Process | ||
Create a new audio transcription meta process | ||
```node | ||
ZiggeoSdk.MetaProfileProcess.create_audio_transcription_process(meta_token_or_key, [callbacks]) | ||
``` | ||
#### Create Nsfw Process | ||
Create a new nsfw filter meta process | ||
```node | ||
ZiggeoSdk.MetaProfileProcess.create_nsfw_process(meta_token_or_key, arguments, [callbacks]) | ||
``` | ||
Arguments | ||
- nsfw_action: *One of the following three: approve, reject, nothing.* | ||
### Webhooks | ||
@@ -530,0 +672,0 @@ |
67211
1143
727