mirror of
https://github.com/LukeHagar/plex-api-oauth.git
synced 2025-12-06 20:47:45 +00:00
Update README.md
This commit is contained in:
14
README.md
14
README.md
@@ -48,3 +48,17 @@ const [plexTVAuthToken, setPlexTVAuthToken] = useState(
|
||||
SavePlexSession(plexClientInformation, tempPlexTVAuthToken);
|
||||
}
|
||||
```
|
||||
|
||||
### Get Plex Music Hub data
|
||||
``` JavaScript
|
||||
async function UpdateHubs(plexClientInformation, plexServers, plexLibraries) {
|
||||
const tempMusicHubs = await GetMusicHub(
|
||||
plexClientInformation,
|
||||
plexServers, // No Auth Token is needed since the server entries have their own access tokens
|
||||
plexLibraries
|
||||
);
|
||||
setMusicHubs(tempMusicHubs);
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user