Issues 356 - Adding WA and OWM remote api

pull/420/head
Jonathan D'Orleans 2016-09-16 14:13:31 -04:00
parent 8d2d77d661
commit c87397c8b9
1 changed files with 23 additions and 0 deletions

23
mycroft/api/skill.py Normal file
View File

@ -0,0 +1,23 @@
from mycroft.api import Api
__author__ = 'jdorleans'
class WAApi(Api):
def __init__(self):
super(WAApi, self).__init__("wa")
def query(self, input):
return self.request({
"path": "?input=" + input
})
class OWMApi(Api):
def __init__(self):
super(OWMApi, self).__init__("owm")
def query(self, path):
return self.request({
"path": path
})