Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (24 sloc) 733 Bytes
layout title permalink
page
Applet Authentication
/applet-development/authentication/

As of this writing, Q applets support API key authentication.

Q API key form

To request a user API key, add the following snippet to package.json:

 "authorization": {
      "type": "apiKey",
      "hint": "Login or signup for free to get your API key",
      "supportUrl": "https://montastic.com/me"
    }

Accessing API key from index.js

The API key is accessible via this.authorization.apiKey. Example:

this.serviceHeaders = {
      "Content-Type": "application/json",
      "X-API-KEY": this.authorization.apiKey,
    }