Build an open future with us.

Invest in Mycroft and become a community partner.

Restful API calls in Mycroft


#1

hi, all!. can someone help me understand how are restful api to be called in mycroft skills, basically the init.py file? the api has content-type application-json, and a body to be passed in order for it to respond. any help is appreciated…i m on dire straits here…https://github.com/harvelle666/Mycroft-Skills-Testing


#2

Hi there @monikr_on_east,

Here’s a really good example of a Skill which makes a call to a ReSTful API and uses the results;
https://github.com/Geeked-Out-Solutions/mycroft-skill-today-in-history/blob/d8c33d7fe286e0ca63dffe30123ebdcb5b3ebb19/init.py

Best, Kathy


#3

@KathyReid. Thanks for the links. It did help.