helpscout-api-php
helpscout-api-php copied to clipboard
Returning threads with initial response: embed=threads
Hi folks!
I took it for granted that withThreads
requested conversations with threads, but I see now that it makes a request for conversations, and then a separate request for each conversations threads. There's a handy API option for requesting conversations together with threads: embed=threads
which I saw in the docs.
Does this SDK support requesting embedded threads up front? I don't see an option for that.
Hey,
The SDK's perspective on eager loading actually predates that API functionality and we don't yet support the full initial embedding up front. Instead it makes additional API requests to ensure all the data is loaded. We're tracking requests for this and very much appreciate your feedback. We'll update this thread if we implement this eager loading in the SDK.
Thanks!
@bkuhl this is what I had in mind — https://github.com/helpscout/helpscout-api-php/pull/208
I tried not to make assumptions about future "embeddable" entities.
Just wanted to add that I'd love to see this added, cheers :)
We're closing this issue due to inactivity. We've moved your request to our backlog of tickets, although we can't tell when we will be able to act on it. Please feel free to reopen if needed. Thank you!