Jump to content

Media folders and views


Angelblue05

Recommended Posts

Angelblue05

Is there an api entrypoint that can tell me which view contains which media folders? I found the ancestor api and I'm really interested in using it, however since it returns media folders, rather than the view, I would need to know how to bridge the two.

 

Thank you :)

Link to comment
Share on other sites

Angelblue05

I got it!

 

Use Items/{Id}/Ancestors and use the Path

 

Then, I can use /Library/VirtualFolders and compare Path to Locations

Then the name is the view name.

 

Edit: Nevermind, VirtualFolders does not follow views.... Oh wait, I can use the "GroupedFolders" key from the user to compare when views are grouped, that works.

 

/SpecialViewOption can easily translate and will work with groupedfolders. Just saw that it doesn't return mixed content.

 

Second Edit: Wow, I just realized, if I put the userId in the Items/{Id}/Ancestors field, it will return user views! That's great :) Much simpler!

Edited by Angelblue05
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...