oberknecht-api
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -27,2 +27,3 @@ import { jsonsplitter } from "@jubewe/jsonsplitter"; | ||
_validatetoken: (customtoken: string) => Promise<import("../types/endpoints/validateToken").validateTokenResponse>; | ||
_revoketoken: (token: string, clientID?: string) => Promise<void>; | ||
_getUsers: (logins: string | string[] | undefined, ids?: string | string[] | undefined, noautofilterids?: Boolean, customtoken?: string) => Promise<import("../types/_getUsers")._getUsersResponse>; | ||
@@ -29,0 +30,0 @@ _getUser: (user: string) => Promise<[string, string, Object]>; |
@@ -51,2 +51,3 @@ "use strict"; | ||
const getPredictions_1 = require("../endpoints/getPredictions"); | ||
const _revoketoken_1 = require("../endpoints/_revoketoken"); | ||
let clientSymNum = 0; | ||
@@ -141,2 +142,5 @@ class oberknechtAPI { | ||
}; | ||
_revoketoken = (token, clientID) => { | ||
return (0, _revoketoken_1._revoketoken)(this.symbol, token, clientID); | ||
}; | ||
_getUsers = (logins, ids, noautofilterids, customtoken) => { | ||
@@ -143,0 +147,0 @@ return (0, _getUsers_1._getUsers)(this.symbol, logins, ids, noautofilterids, customtoken); |
@@ -9,2 +9,5 @@ export declare class urls { | ||
}; | ||
revokeToken: { | ||
method: string; | ||
}; | ||
whisper: { | ||
@@ -11,0 +14,0 @@ endpoint: string; |
@@ -20,2 +20,5 @@ "use strict"; | ||
}; | ||
static revokeToken = { | ||
method: "POST", | ||
}; | ||
static whisper = { | ||
@@ -174,3 +177,3 @@ endpoint: "/whispers", | ||
static _code = (...args2) => { | ||
return this._(...args2).code ?? 200; | ||
return this._(...args2)?.code ?? 200; | ||
}; | ||
@@ -177,0 +180,0 @@ static _method = (...args2) => { |
@@ -62,2 +62,3 @@ import { i } from "../index"; | ||
import { getPredictions } from "../endpoints/getPredictions"; | ||
import { _revoketoken } from "../endpoints/_revoketoken"; | ||
let clientSymNum = 0; | ||
@@ -184,2 +185,7 @@ | ||
}; | ||
_revoketoken = (token: string, clientID?: string) => { | ||
return _revoketoken(this.symbol, token, clientID); | ||
}; | ||
_getUsers = ( | ||
@@ -186,0 +192,0 @@ logins: string | string[] | undefined, |
@@ -21,2 +21,6 @@ import { i } from ".."; | ||
static revokeToken = { | ||
method: "POST", | ||
}; | ||
static whisper = { | ||
@@ -212,3 +216,3 @@ endpoint: "/whispers", | ||
static _code = (...args2: any) => { | ||
return this._(...args2).code ?? 200; | ||
return this._(...args2)?.code ?? 200; | ||
}; | ||
@@ -215,0 +219,0 @@ |
{ | ||
"name": "oberknecht-api", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A client for easy usage of the Twitch API (Helix)", | ||
@@ -5,0 +5,0 @@ "main": "./export", |
446867
353
10170