mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-07 20:47:49 +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 PlexTvApi(config)
|
||||
.getUserDetails({ baseURL: "https://plex.tv/api/v2" })
|
||||
.then((resp) => console.log(resp));
|
||||
new PlexTvApi(config).getUserDetails().then((resp) => console.log(resp));
|
||||
|
||||
@@ -41,7 +41,7 @@ export class BaseAPI {
|
||||
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
||||
if (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