mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
switch to new API.
This commit is contained in:
@ -6,8 +6,11 @@ export class NekoApi {
|
||||
public connect(url: string, id: string, secret: string) {
|
||||
this.api_configuration = new Api.Configuration({
|
||||
basePath: url,
|
||||
headers: {
|
||||
Authorization: 'Basic ' + btoa(id + ':' + secret),
|
||||
baseOptions: {
|
||||
auth: {
|
||||
username: id,
|
||||
password: secret,
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user