certinia / ffhttp-googledrive

Apex framework to provide API calls for Google Drive
BSD 3-Clause "New" or "Revised" License
20 stars 18 forks source link

Added support for Export File endpoint #10

Closed miguelriverarios closed 2 years ago

miguelriverarios commented 3 years ago

This library has been a life saver, but I had one use case that required the Export endpoint on the Drive API. In case anyone else needs this functionality, I figured I'd add my changes to a pull request. My additions are minimal and they do not appear to conflict with any of the existing code (this is already live in my production site):

-Added the ExportRequest class and related exportRequest method to the ffhttp_GoogleDriveFiles file -Added the COMMAND_EXPORT string property to the ffhttp_GoogleDriveResource file (this was mostly just to maintain the existing architecture) -Added a test method for the new exportRequest method to the ffhttp_GoogleDriveTest file, which tests the basic exportRequest functionality and the mimeType getter and setters.