Currently, in a PHP code base I work on, several timeline items and a bundle cover are inserted in 4 calls like this:
insert_timeline_item($mirror_service, $new_timeline_item_1, null, null);
insert_timeline_item($mirror_service, $new_timeline_item_2, null, null);
insert_timeline_item($mirror_service, $new_timeline_item_3, null, null);
insert_timeline_item($mirror_service, $new_timeline_item_bundle_cover, null, null);
I'm aware of the Java and Python ways to send these all in a single batch HTTP call to the Mirror API. How do I do that in PHP?
Right now the cards arrive on the Glass relatively slowly and a user will often try to scroll and see there is nothing to scroll before the other results arrive, for example. Anything that could help the results all arrive at once would help a lot. We already mitigate as much as possible by only making a notification sound on the last card, but it isn't enough for a good user experience.