Assumes you have node.js and npm.
Create a file ~/.facebook-auth containing your login email and password in the format [email protected]:my-password.
| myVoiceIt.createUser((jsonResponse)=>{ | |
| let userId = jsonResponse["userId"]; // Save generated userId to use later | |
| myVoiceIt.createVideoEnrollment({ | |
| userId: userId, | |
| contentLanguage : "en-us", | |
| videoFilePath : "/Users/username/Downloads/enroll.mp4" | |
| },(jsonResponse)=>{ | |
| console.log(jsonResponse); | |
| }); | |
| }); |
| myVoiceIt.createUser((jsonResponse)=>{ | |
| const userId = jsonResponse["userId"]; // Save generated userId to use later | |
| }); |
| const voiceit2 = require('voiceit2-nodejs'); | |
| let myVoiceIt = new voiceit2("<apiKey>", "<apiToken>"); | |
| //Pass your 36 character apiKey and apiToken as a parameter | |
| //(visit https://voiceit.io/settings to see your credentials) |
| package example | |
| import voiceit2.VoiceIt2 | |
| import scala.concurrent.Future | |
| import scala.util.parsing.json.JSON | |
| object Example { | |
| def main(args : Array[String]): Unit = { |
Assumes you have node.js and npm.
Create a file ~/.facebook-auth containing your login email and password in the format [email protected]:my-password.