UNPKG

emotiv-ts

Version:

A Typescript library that wraps the Cortex API functionalities to communicate with Emotiv headsets

16 lines (15 loc) 525 B
import { CortexRequest } from "../../internal/cortex-request"; import { Requests } from "../../../enums/internal/emotiv.requests"; export class Authorize extends CortexRequest { constructor(application) { super(); this.id = Requests.AUTHORIZE; this.method = "authorize"; this.params = { "clientId": application.clientId, "clientSecret": application.clientSecret, "license": application.license, "debit": application.debit }; } }