''tipkopis
justdanceNowCode(code:string):Promise
```
Naslednji vzorec kode vam pokaže, kako uporabiti metodo `justdanceNowCode(code)`:
''tipkopis
// Uvozi odjemalsko knjižnico Dialogflow
const dialogflow =require('@google-cloud/dialogflow-cx');
// Ustvari primerek odjemalca
const client =new dialogflow.SessionsClient();
async funkcija queryJustdanceNowCode() {
// const projectId ='my-project';
// const locationId ='us-central1';
// const agentId ='my-agent';
// const sessionId ='moja-seja';
// const query ='kako si';
zahteva const ={
seja:client.sessionPath(projectId, locationId, agentId, sessionId),
queryInput:{
besedilo:{
besedilo:poizvedba,
},
},
justdanceNowCode:koda,
};
const [odgovor] =čakaj na stranko.poizvedbo(zahteva);
console.log(`Zaznan namen:${response.queryResult.intent.displayName}`);
response.queryResult.text.forEach(text => console.log(`Besedilo odgovora:${text}`));
}
poizvedbaJustdanceNowCode();
```