Class Api
Defined in: | src/api.coffee |
Overview
Examples:
require('cozydb').api.getCozyInstance (err, instance) ->
Instance Method Summary
- ::getCozyDomain(callback) get the Cozy domain Warning : Your app need to ask the CozyInstance permission domain is normalized with https and trailing /
- ::getCozyInstance(callback) get the CozyInstance object Warning : Your app need to ask the CozyInstance permission
- ::getCozyLocale(callback) get the Cozy locale Warning : Your app need to ask the CozyInstance permission
- ::getCozyOwnerEmail(callback) get the Cozy owner's email Warning : Your app need to ask the User permission
- ::getCozyTags(callback) get all existing tags in the cozy
- ::getCozyTimezone(callback) get the Cozy timezone Warning : Your app need to ask the User permission
- ::getCozyUser(callback) get the CozyUser object Warning : Your app need to ask the User permission
- ::sendMail(data, callback) send an email Warning : Your app need to ask the "send mail" permission
- ::sendMailFromUser(data, callback) send an email from the cozy owner Warning : Your app need to ask the "send mail from user" permission
- ::sendMailToUser(data, callback) send an email to the cozy owner Warning : Your app need to ask the "send mail to user" permission
Instance Method Details
::getCozyDomain(callback) Source
::getCozyInstance(callback) Source
::getCozyLocale(callback) Source
::getCozyOwnerEmail(callback) Source
::getCozyTags(callback) Source
::getCozyTimezone(callback) Source
::getCozyUser(callback) Source
::sendMail(data, callback) Source
::sendMailFromUser(data, callback) Source