Hi, I recently ran a script to pull updated changes to our airtable into our application and all the urls to attachments changed. I looked it up and saw that this was to make them invalid after 2 hours. We were using them to point to images on our site so this means a big change in our workflow as we will now have to download the images from the API rather than pointing to them in airtable. We wanted to opt out of the change for now and schedule the work closer to Feb. We opted out in settings and I ran the script to pull the data and get the non-expiring urls. They are still showing in the browser as expired. I have re-run the script and the urls don't change. Does anyone know what is going on?
Opting out of expiring urls is only good for a few more weeks. I don't know if it is worthwhile at this late stage.
You state that your non-expiring urls do not work. How are you trying to use the urls, and what actually is happening? Can you explain how you got the urls (csv export, copying a cell value, scripting, automation, etc.)? What is the format of the url, such as the domain name and whether or not there is a filename at the end. Depending on how you got the url, you might have a "viewer" url that requires being logged into Airtable, or you might still have an expiring url.
How are you trying to use the urls,
using airtable's API endpoint url, my API key to fetch data from my base to my wordpress site using wp_safe_remote_get().
and what actually is happening? Can you explain how you got the urls (csv export, copying a cell value, scripting, automation, etc.)? What is the format of the url, such as the domain name and whether or not there is a filename at the end.
I receive the data in .json format, which I pass through json_decod() in order to access the values in PHP. I've included a screen shot of one record. you can see the url format there.
How do i know if i have a "viewer" url?
Once you access the attachment via the URL, it will only be accessible at that URL for 2 hours.
So if you want access to an image or an attachment for more than 2 hours, you will need to move the image somewhere else.
If you need this process to be automated, you can use Make to automate the process of moving the attachments out of Airtable and into a publicly-accessible cloud drive (such as Google Drive).
There is a small learning curve with Make, which is why I created this basic navigation video to help. I also provide the links to a few other Make training resources there as well.
p.s. If you have a budget for your project and you’d like to hire an expert Airtable consultant to help you with any of this, please feel free to contact me through my website: Airtable consulting — ScottWorld