Orbita lets the Voice Experience developer integrate Google services with the projects/skills. This allows the Voice Experience developer to retrieve or send data to these services.
Integrate Google services with Orbita’s project.
Experience Designer
Login to Orbita and open Experience Designer.
Add the below code in the function node or import the sample flow attached.
var orbitaUtil = global.get('orbitaUtil'); var resPromise = orbitaUtil.getGoogleAuthJWTToken({ client_email: "<ABCD@EFGH.iam.gserviceaccount.com>", private_key: "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBg...\n-----END PRIVATE KEY-----\n", scope: ["https://www.googleapis.com/auth/drive"]}); resPromise.then(function(resData){ msg.headers = {}; msg.headers = { "Authorization": `Bearer ${resData.access_token}`, "Accept": "application/json" }; node.warn(resData); node.send([msg, null]); }).catch(function(err){ node.error(err); node.send([null, msg]); });
fd
safsd