I thought it would be easy to get the shareable link for a file, like file.getShareableLink() but it seems that things are not so simple.
I've come across similar posts here but nothing that I can understand (alternativeLink and Shareable link for Google Drive file).
Is there really no straightforward way to do this? I've got hundreds of images to extract a shareable link for so they can be displayed online.