mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-09 20:47:47 +00:00
Updated Plex.tv package template
This commit is contained in:
@@ -16,6 +16,4 @@ const config = new Configuration({
|
|||||||
|
|
||||||
// new DevicesApi(config).getDevices().then((resp) => console.log(resp));
|
// new DevicesApi(config).getDevices().then((resp) => console.log(resp));
|
||||||
|
|
||||||
new PlexTvApi(config)
|
new PlexTvApi(config).getUserDetails().then((resp) => console.log(resp));
|
||||||
.getUserDetails({ baseURL: "https://plex.tv/api/v2" })
|
|
||||||
.then((resp) => console.log(resp));
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export class BaseAPI {
|
|||||||
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
||||||
if (configuration) {
|
if (configuration) {
|
||||||
this.configuration = configuration;
|
this.configuration = configuration;
|
||||||
this.basePath = configuration.basePath || this.basePath;
|
this.basePath = "https://plex.tv/api/v2" || this.basePath;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user