Skip to content

Commit

Permalink
Merge pull request #308 from friggframework/feature/google-drive-upda…
Browse files Browse the repository at this point in the history
…te-file-request

feat: Add updateFileMetadata function to google-drive api
  • Loading branch information
Jo-lefthook authored Apr 29, 2024
2 parents 1d17b5e + be65030 commit 513245c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions api-module-library/google-drive/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ class Api extends OAuth2Requester {
return this._post(options)
}

async updateFileMetadata(fileId, query, body) {
const options = {
url: this.baseUrl + this.URLs.fileById(fileId),
query,
body,
};
return this._patch(options);
}

async getFile(fileId, query) {
const options = {
url: this.baseUrl + this.URLs.fileById(fileId),
Expand Down

0 comments on commit 513245c

Please sign in to comment.