Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Create command: bf luis:endpoints:list #309

Closed
munozemilio opened this issue Oct 30, 2019 · 2 comments
Closed

Create command: bf luis:endpoints:list #309

munozemilio opened this issue Oct 30, 2019 · 2 comments
Assignees
Labels
LUIS APIs For LUIS Authoring APIs P0 Must Fix. Release-blocker R7 Release 7 - December 10th, 2019

Comments

@munozemilio
Copy link
Contributor

munozemilio commented Oct 30, 2019

This command should expose this request exposed in the azure sdk client

e.g

const msRest = require("ms-rest");
const LUISAuthoringClient = require("azure-cognitiveservices-luis-authoring");
const subscriptionKey = "xxxxxxxxxx";
const token = { 
    "inHeader": { 
        'Ocp-Apim-Subscription-Key': subscriptionKey 
    }
};
const creds = new msRest.ApiKeyCredentials(token);
const client = new LUISAuthoringClient(creds, 'https://westus.api.cognitive.microsoft.com');
const appId = 'xxxxxxxxxx'
const versionId = "xxx";

client.baseUri = 'https://westus.api.cognitive.microsoft.com/luis/authoring/v3.0-preview/';

const exportVersion = async function(){
    let result = await client.versions.exportMethod(appId, versionId)
    console.log(JSON.stringify(result, null, 2)); 
}

const listPhraseLists = async function(){
    let result = await client.features.listPhraseLists(appId, versionId)
    console.log(JSON.stringify(result, null, 2)); 
}

exportVersion()
listPhraseLists()

@munozemilio munozemilio added P0 Must Fix. Release-blocker R7 Release 7 - December 10th, 2019 LUIS APIs For LUIS Authoring APIs labels Oct 30, 2019
@jspruance
Copy link

code complete, PR:
#374

@jspruance
Copy link

merged to master - closing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
LUIS APIs For LUIS Authoring APIs P0 Must Fix. Release-blocker R7 Release 7 - December 10th, 2019
Projects
None yet
Development

No branches or pull requests

2 participants