Can't get collections with title

I’m having a lot of issues with getting collections (or really anything) from my store with my custom app. If I use Shopify.Clients.Rest().get({ path: “products/collections” }), I can’t seem to figure out how to get collections that have a certain title and just keep getting an error saying something like “expected id to be a string”, but I don’t want to have to pass an id in. The other way I found is for me to use Shopify.Utils.loadCurrentSession() and then SmartCollections.all(), but loadCurrentSession() always returns undefined. If I use loadOfflineSession instead it gets me the session, but then when I call SmartCollections.all() it gives me a 401 Unauthorized error.

I’ve been trying to figure this out for a while now but I just can’t seem to get anything to work besides getting products with the rest client.

I figured out how to get the collections. I didn’t realise there was a difference between manual and automated collections, so I just needed to use “smart_collections” as the path with { handle: “handle” } as the query. I think that my problem with both of the load*Session functions is that I’m using a custom app which doesn’t have a session, so they’ll never work. I don’t know if I’m understanding it wrong but it’s a bit strange that there’s two completely different methods of accessing the admin api. Regardless, it works now so that’s all I need.