How to search multiple types? #905
-
Im using Spotify.Search.Item and in the documentation it states that you can search using a comma seperated list. The constructor paramter is a single type public SearchRequest(Types type, ...) and passing in a string or list of types is not allowed/supported?. I want to specifcally search for only albums, tracks and artists any other data is not needed. I am currently using the All type and ignoring any of the results returned from audiobooks and episodes but i was wondering if there was a way to only search for multiple types instead of having the API return data that is never going to be used everytime? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, var search = new SearchRequest(SearchRequest.Types.Album | SearchRequest.Types.Playlist, "Hello World"); This should do the trick. |
Beta Was this translation helpful? Give feedback.
-
Thanks didn't realise this was possible. |
Beta Was this translation helpful? Give feedback.
Hi,
This should do the trick.