Hello,
Sorry for the basic question. I'm updating the code I had for the V1 Python API and I'm having a trouble with the download function. Originally I used the following:
f, metadata = client.get_file_and_metadata('/' + j)
out = open(j)
out.write(f.read())
out.close()
Where 'j' is just a name of a picture from a list of names; this was what was used in the tutorial for the previous answer. Now, it seems that in the newest version of the API that function is gone and there seem to be two replacements: 'files_download()' and 'files_download_to_file()'. I'm confused because both essentially produce the same type of response:
What would be the correct way to transform the previous methodology to the new one?
Thanks,