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

Create command: bf luis:application:show #314

Closed

Description

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

Activity

  1. added
    P0
    R7
    LUIS APIs
    on Oct 30, 2019
  2. munozemilio commented on Nov 2, 2019

    @munozemilio
    ContributorAuthor

    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()
    
    
  3. jspruance commented on Nov 22, 2019

    @jspruance

    code complete - PR:
    #379

  4. jspruance commented on Nov 26, 2019

    @jspruance

    merged to master - closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

LUIS APIsP0R7

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions