switch to new API.

This commit is contained in:
Miroslav Šedivý
2021-01-08 20:51:38 +01:00
parent 06a534004c
commit aab2f389eb
2 changed files with 10 additions and 12 deletions

View File

@ -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,
},
},
})
}