Hoping to get some help on a connection that is eluding me at present - how to create a practical setup to automate the input of HubDB files using custom workflow steps (server side python).
The API docucuments at CMS API | HubDB (hubspot.com) give details of the import API call, suggesting that a file name and an import config file are required. I have no issues with the config file so far, but generating a valid file spec is causing me problems.
I’m attempting to use a user form to upload a file that give me the starting poing for the import. The file property type - after the form submit - gives an https:// file URL which, although complicated with signing, is apparentlyly valid (I can use it to access and download the file that I uploaded via the form.)
But offering this file URL to the import API call (using python requests/file option) simply fails in all the permutations I have tried. So the question (unless I am thinking about this incorrectly) is how to manipulate the file property URL to satisfy the API parameter for the file spec needed in the HubDB import call?
There do not seem to be any fully worked examples of using the import API with a “real” file spec in the community or in a general Google search that I can find.
All help gratefully received.
Steve