Infusionsoft-Php Optional properties

I’m using infusionsoft-php to successfully pull file properties, but for the life of me I can’t find any documentation for how to pass an argument in order to retrieve optional_properties => file_data. My objective is to iterate through accounts and grab their uploaded files for backup.

Any insight would be greatly appreciated.

Solved! For anyone who’s curious, the optional_properties parameter has to be passed with ->with(), and the order it comes in is very important so for instance this will retrieve a file with its file_data ready to be decoded:

$file_data = $infusionsoft->files()->with(‘file_data’)->find($file_id);