Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

line/clova-cek-sdk-python-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clova Example Extension

This is a simple Clova Extention to demonstrate how to use the Clova Extension SDK for python. Have a look at home-extension.py to see how the CEK SDK can be used. For this example the Custom Extension in the Clova-Developers Center has been setup with the following custom Intends. TurnOn, TurnOff, HomeStatus, PlayASound
The TurnOn and TurnOff Intents can have Custom Slots with the names Light or AirConditioner.

Documentation

Installation

How to Setup Environment

Install pip:

sudo easy_install pip

Install Flask:

pip install Flask

Install CEK SDK:

pip install clova-cek-sdk

Run Flask server:

FLASK_APP=home-extension.py python3 -m flask run --host=0.0.0.0

How to manually Test

You can run the Flask server locally and use curl to test if the server works.

POST

curl -H "Content-Type: application/json" -X POST -d @"./test/data/example_request.txt" http://localhost:5000/app

GET

curl -X GET http://localhost:5000/

About

Sample application that uses the Clova Python CEK SDK

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages