Skip to content

s-bortolussi/myshop-dialogflow-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myshop-dialogflow-webhook

basic dialogflow webhook to call external api.

Running My Shop

#Set default user credentials
$ export SPRING_SECURITY_USER_NAME=<?>
$ export SPRING_SECURITY_USER_PASSWORD=<?>

#set my shop service url
$ export MYSHOP_SERVICE_URL=<?>

#run webhook
$ ../mvnw package
$ java -jar target/*.jar

Testing My Shop

#edit fulfillment_request.json file and set user access token 
$ export TEST_USER_ACCESS_TOKEN=<?>
$ sed -i "s@<user_access_token_goes_here>@$TEST_USER_ACCESS_TOKEN@" fulfillement_request.json


#configuration can be validated using
$curl -i -X POST -H "Content-Type: application/json" \
--data-binary "@fulfillement_request.json" \
-H "Authorization: Basic dXNlcjpwYXNzd29yZA==" \
http://localhost:8082/webhook

About

basic dialogflow webhook to call external api

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages