All URIs are relative to https://api.crowdemotion.co.uk/v1
Method | HTTP request | Description |
---|---|---|
facevideoFacevideoIdDelete | DELETE /facevideo/{facevideo_id} | Delete a FaceVideo |
facevideoGet | GET /facevideo | Find a FaceVideo |
facevideoPost | POST /facevideo | Analyse FaceVideo |
facevideoPut | PUT /facevideo | Analyse FaceVideo |
String facevideoFacevideoIdDelete(facevideoId)
Delete a FaceVideo
<p>Use this operation to delete a FaceVideo.</p> <p><strong>Permissions:</strong> ✗ Respondent ✗ Customer ✓ Manager</p>
// Import classes:
//import co.uk.crowdemotion.ApiClient;
//import co.uk.crowdemotion.ApiException;
//import co.uk.crowdemotion.Configuration;
//import co.uk.crowdemotion.auth.*;
//import co.uk.crowdemotion.FaceVideoApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
FaceVideoApi apiInstance = new FaceVideoApi();
Integer facevideoId = 56; // Integer | ID of FaceVideo to be deleted.
try {
String result = apiInstance.facevideoFacevideoIdDelete(facevideoId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FaceVideoApi#facevideoFacevideoIdDelete");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
facevideoId | Integer | ID of FaceVideo to be deleted. |
String
- Content-Type: application/json
- Accept: application/json
FaceVideo facevideoGet(facevideoId, responseId)
Find a FaceVideo
<p>Use this operation to access information about the FaceVideo analysis.</p> <p><i>Any one of the two parameters must be specified.</i></p> <p>To discover if the video has been analyzed, check the meaning of status field in the following table:</p> <table> <tr><td>Value</td> <td>Description</td></tr> <tr><td>0</td> <td>Not started</td></tr> <tr><td>1</td> <td>Processing started</td></tr> <tr><td>2</td> <td>Processing completed</td></tr> <tr><td>-1</td> <td>Error</td></tr> </table> <p><strong>Permissions:</strong> ✓ Respondent ✓ Customer ✓ Manager</p>
// Import classes:
//import co.uk.crowdemotion.ApiClient;
//import co.uk.crowdemotion.ApiException;
//import co.uk.crowdemotion.Configuration;
//import co.uk.crowdemotion.auth.*;
//import co.uk.crowdemotion.FaceVideoApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
FaceVideoApi apiInstance = new FaceVideoApi();
Integer facevideoId = 56; // Integer | FaceVideo ID. NOTE: Only this parameter is considered if both are specified.
Integer responseId = 56; // Integer | Response ID corresponding to the FaceVideo.
try {
FaceVideo result = apiInstance.facevideoGet(facevideoId, responseId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FaceVideoApi#facevideoGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
facevideoId | Integer | FaceVideo ID. NOTE: Only this parameter is considered if both are specified. | [optional] |
responseId | Integer | Response ID corresponding to the FaceVideo. | [optional] |
- Content-Type: application/json
- Accept: application/json
FaceVideo facevideoPost(filename, sandbox, responseId, researchId, mediaId, respondentId, processVideo)
Analyse FaceVideo
<p>Starts the analysis of a single FaceVideo (in the supported formats) through either:</p> <ol> <li>a video URL pointing to a resource accessible through the Internet without authentication</li> <li>the binary contents of the video in the request's body, encoded as <code>multipart/form-data</code> content type</li> </ol> <p>The third option is a <code>PUT</code> call to <code>/v1/facevideo/{filename}</code> (<code>filename</code> required string e.g. <code>facevideo1.mp4</code>) which supports all the URL parameters as above with a body encoding <code>application/octet-stream</code> and the file contents as plain binary: this call makes uploads more efficient but it does not respect HTTP/RESTful standards so it may be not supported in future.</p> <p><strong>Permissions:</strong> ✓ Respondent ✓ Customer ✓ Manager</p>
// Import classes:
//import co.uk.crowdemotion.ApiClient;
//import co.uk.crowdemotion.ApiException;
//import co.uk.crowdemotion.Configuration;
//import co.uk.crowdemotion.auth.*;
//import co.uk.crowdemotion.FaceVideoApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
FaceVideoApi apiInstance = new FaceVideoApi();
File filename = new File("/path/to/file.txt"); // File | FaceVideo to be analysed.
Boolean sandbox = true; // Boolean | Generates random data for testing, at no cost. Default: false.
Integer responseId = 56; // Integer | Associates this Facevideo to a previously generated Response.
Integer researchId = 56; // Integer | Associates this Facevideo to a previously generated Research.
Integer mediaId = 56; // Integer | Associates this Facevideo to a previously generated Media.
Integer respondentId = 56; // Integer | Associates this Facevideo to a previously generated Respondent.
Boolean processVideo = true; // Boolean | Actually processes the video. Default: true.
try {
FaceVideo result = apiInstance.facevideoPost(filename, sandbox, responseId, researchId, mediaId, respondentId, processVideo);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FaceVideoApi#facevideoPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
filename | File | FaceVideo to be analysed. | [optional] |
sandbox | Boolean | Generates random data for testing, at no cost. Default: false. | [optional] |
responseId | Integer | Associates this Facevideo to a previously generated Response. | [optional] |
researchId | Integer | Associates this Facevideo to a previously generated Research. | [optional] |
mediaId | Integer | Associates this Facevideo to a previously generated Media. | [optional] |
respondentId | Integer | Associates this Facevideo to a previously generated Respondent. | [optional] |
processVideo | Boolean | Actually processes the video. Default: true. | [optional] |
- Content-Type: multipart/form-data
- Accept: application/json
FaceVideo facevideoPut(sandbox, responseId, researchId, mediaId, respondentId, processVideo, body)
Analyse FaceVideo
<p>Starts the analysis of a single FaceVideo (in the supported formats) through either:</p> <ol> <li>a video URL pointing to a resource accessible through the Internet without authentication</li> <li>the binary contents of the video in the request's body, encoded as <code>multipart/form-data</code> content type</li> </ol> <p>The third option is a <code>PUT</code> call to <code>/v1/facevideo/{filename}</code> (<code>filename</code> required string e.g. <code>facevideo1.mp4</code>) which supports all the URL parameters as above with a body encoding <code>application/octet-stream</code> and the file contents as plain binary: this call makes uploads more efficient but it does not respect HTTP/RESTful standards so it may be not supported in future.</p> <p><strong>Permissions:</strong> ✓ Respondent ✓ Customer ✓ Manager</p>
// Import classes:
//import co.uk.crowdemotion.ApiClient;
//import co.uk.crowdemotion.ApiException;
//import co.uk.crowdemotion.Configuration;
//import co.uk.crowdemotion.auth.*;
//import co.uk.crowdemotion.FaceVideoApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
FaceVideoApi apiInstance = new FaceVideoApi();
Boolean sandbox = true; // Boolean | Generates random data for testing, at no cost. Default: false.
Integer responseId = 56; // Integer | Associates this Facevideo to a previously generated Response.
Integer researchId = 56; // Integer | Associates this Facevideo to a previously generated Research.
Integer mediaId = 56; // Integer | Associates this Facevideo to a previously generated Media.
Integer respondentId = 56; // Integer | Associates this Facevideo to a previously generated Respondent.
Boolean processVideo = true; // Boolean | Actually processes the video. Default: true.
FaceVideoUpload body = new FaceVideoUpload(); // FaceVideoUpload | Request body
try {
FaceVideo result = apiInstance.facevideoPut(sandbox, responseId, researchId, mediaId, respondentId, processVideo, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FaceVideoApi#facevideoPut");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
sandbox | Boolean | Generates random data for testing, at no cost. Default: false. | [optional] |
responseId | Integer | Associates this Facevideo to a previously generated Response. | [optional] |
researchId | Integer | Associates this Facevideo to a previously generated Research. | [optional] |
mediaId | Integer | Associates this Facevideo to a previously generated Media. | [optional] |
respondentId | Integer | Associates this Facevideo to a previously generated Respondent. | [optional] |
processVideo | Boolean | Actually processes the video. Default: true. | [optional] |
body | FaceVideoUpload | Request body | [optional] |
- Content-Type: application/json
- Accept: application/json