I am trying to access a PDF via a web embedding, but it’s not working because the PDF requires login credentials to view. The Glide platform currently doesn’t support embedding login-required content via web embedding. If the link to the PDF were public, I could use web embedding to view it.
I have another idea: to call the API and pass my credentials in the headers to access the PDF. However, the challenge is that each PDF in my case is identified by a unique URL that includes the ‘main link’ and a specific PDF ID.
My question is: Is it possible for every single record in my Glide data source to call the API for its specific URL? If yes, can someone guide me on how to fetch and access the individual URL for each record and use it to call the API?
Something like this:
Use a Webhook trigger in Make to listen for new or updated rows from Glide (or use Glide’s API if you have an enterprise plan).
Then in the Make scenario:
HTTP module to call the PDF API using credentials in the headers.
Upload the PDF to a public service like Google Drive or Cloudinary.
Update Glide with the public URL (using Glide API or connected sheet).
No, actually when I tried with my python code it does not require credentials for that api it requires some headers and a token, and it is returning binary content using simple python code, if i use same url without header here it is returning “FOUND”
if I use some header as in my python code it returns binary content of pdf and in my python code it did not require any credentials just some headers and I entered all of them, but here in glide when I entered same headers it return me 401 error :Processing: image.png…
I’m not sure since I don’t know what storage solution you’re using here. A 401 error means the API call was unauthorized, usually due to missing or invalid credentials.
It is actually public URL but it requires headers and it can show pdf if headers are entered, and it is showing something like this when I tried with callAPI
If it starts working and displays the PDF because my link and header are now correct, the issue lies with the web embedding not displaying it.
However, this isn’t my original requirement. I want to display the PDF using callAPI. The problem is that callAPI uses the same manually entered URL for all rows.
If the above method works, it should take an individual URL for each row and display it using web embedding. Is this possible?