Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

  1. Login to Orbita and open Experience Designer.

  2. 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]);
    });

  File Modified
No files shared here yet.

  1. fd

  2. safsd

Related Articles

  • No labels