Jump to content

Server Configuration api call


Luke

Recommended Posts

There is now an api call that will get you the server configuration.

 

/mediabrowser/api/serverconfiguration.

 

This should be the very first call you make when your app starts up. It will tell you if certain features are enabled or not.

 

For instance, it has EnableUserProfiles.

 

If true, you should display the login screen as normal.

 

If false, you should skip the login screen. Make a call to to get the default user at:

 

/mediabrowser/api/defaultuser

 

Then proceed with this user in exactly the same fashion as if they had logged in, except do not show any visual elements displaying the current "logged in user".

 

All of this has been added to ApiClient so you can see sample usage.

 

Try not to keep the configuration in memory for too long, because it could change. Instead just get it when you need it.

Link to comment
Share on other sites

UI guys - we need a way to have a default user for a particular device. People will want their user profile in use but not have to enter the PW just to get into the app.

Link to comment
Share on other sites

I've just pushed a breaking change to the default user api call.

 

The url has changed to /mediabrowser/api/user

 

 

Basically it is a user api. You can supply id to get a specific user object, or omit to get the default user.

 

ApiClient has been updated.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...