|
def | __init__ (self) |
|
def | activate (self, state, token) |
|
def | delete_skill_metadata (self, uuid) |
|
def | get (self) |
|
def | get_code (self, state) |
|
def | get_location (self) |
|
def | get_oauth_token (self, dev_cred) |
|
def | get_settings (self) |
|
def | get_skill_settings (self) |
|
def | get_subscriber_voice_url (self, voice=None) |
|
def | get_subscription (self) |
|
def | is_subscriber (self) |
|
def | report_metric (self, name, data) |
|
def | send_email (self, title, body, sender) |
|
def | update_version (self) |
|
def | upload_skill_metadata (self, settings_meta) |
|
def | upload_skills_data (self, data) |
|
def | __init__ (self, path) |
|
def | add_authorization (self, headers) |
|
def | add_content_type (self, headers) |
|
def | build_data (self, params) |
|
def | build_headers (self, params) |
|
def | build_json (self, params) |
|
def | build_path (self, params) |
|
def | build_query (self, params) |
|
def | build_url (self, params) |
|
def | check_token (self) |
|
def | get_data (self, response) |
|
def | get_response (self, response, no_refresh=False) |
|
def | refresh_token (self) |
|
def | request (self, params) |
|
def | send (self, params, no_refresh=False) |
|
Web API wrapper for obtaining device-level information
Definition at line 220 of file scripts/mycroft/api/__init__.py.
def mycroft.api.DeviceApi.__init__ |
( |
|
self | ) |
|
def mycroft.api.DeviceApi.activate |
( |
|
self, |
|
|
|
state, |
|
|
|
token |
|
) |
| |
def mycroft.api.DeviceApi.delete_skill_metadata |
( |
|
self, |
|
|
|
uuid |
|
) |
| |
Delete the current skill metadata from backend
TODO: Real implementation when method exists on backend
Args:
uuid (str): unique id of the skill
Definition at line 391 of file scripts/mycroft/api/__init__.py.
def mycroft.api.DeviceApi.get |
( |
|
self | ) |
|
def mycroft.api.DeviceApi.get_code |
( |
|
self, |
|
|
|
state |
|
) |
| |
def mycroft.api.DeviceApi.get_location |
( |
|
self | ) |
|
def mycroft.api.DeviceApi.get_oauth_token |
( |
|
self, |
|
|
|
dev_cred |
|
) |
| |
Get Oauth token for dev_credential dev_cred.
Argument:
dev_cred: development credentials identifier
Returns:
json string containing token and additional information
Definition at line 350 of file scripts/mycroft/api/__init__.py.
def mycroft.api.DeviceApi.get_settings |
( |
|
self | ) |
|
Retrieve device settings information from the web backend
Returns:
str: JSON string with user configuration information.
Definition at line 300 of file scripts/mycroft/api/__init__.py.
def mycroft.api.DeviceApi.get_skill_settings |
( |
|
self | ) |
|
def mycroft.api.DeviceApi.get_subscriber_voice_url |
( |
|
self, |
|
|
|
voice = None |
|
) |
| |
def mycroft.api.DeviceApi.get_subscription |
( |
|
self | ) |
|
Get information about type of subscrition this unit is connected
to.
Returns: dictionary with subscription information
Definition at line 320 of file scripts/mycroft/api/__init__.py.
def mycroft.api.DeviceApi.is_subscriber |
( |
|
self | ) |
|
def mycroft.api.DeviceApi.report_metric |
( |
|
self, |
|
|
|
name, |
|
|
|
data |
|
) |
| |
def mycroft.api.DeviceApi.send_email |
( |
|
self, |
|
|
|
title, |
|
|
|
body, |
|
|
|
sender |
|
) |
| |
def mycroft.api.DeviceApi.update_version |
( |
|
self | ) |
|
def mycroft.api.DeviceApi.upload_skill_metadata |
( |
|
self, |
|
|
|
settings_meta |
|
) |
| |
def mycroft.api.DeviceApi.upload_skills_data |
( |
|
self, |
|
|
|
data |
|
) |
| |
Upload skills.json file. This file contains a manifest of installed
and failed installations for use with the Marketplace.
Arguments:
data: dictionary with skills data from msm
Definition at line 408 of file scripts/mycroft/api/__init__.py.
mycroft.api.DeviceApi._skill_settings = None |
|
staticprivate |
mycroft.api.DeviceApi._skill_settings_lock = Lock() |
|
staticprivate |
The documentation for this class was generated from the following file: