diff --git a/README.md b/README.md index 6fdeddd..774268a 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ function App() { openPicker({ clientId: "xxxxxxxxxxxxxxxxx", developerKey: "xxxxxxxxxxxx", + appId: "xxxxxxxxxxxx", viewId: "DOCS", // token: token, // pass oauth token in case you already have one showUploadView: true, @@ -71,6 +72,7 @@ export default App; | callbackFunction |function | REQUIRED |Callback function that will be called on picker action | | clientId | string | REQUIRED | Google client id | | developerKey | string | REQUIRED | Google developer key | +| appId | string | optional | Google app ID (optional - may be required if using drive.file scope) | | disableDefaultView | boolean | false | disables default view | | viewId | string | DOCS | ViewIdOptions | | viewMimeTypes | string | optional |Comma separated mimetypes. Use this in place of viewId if you need to filter multiple type of files. list: https://developers.google.com/drive/api/v3/mime-types.| diff --git a/package-lock.json b/package-lock.json index 0f05732..61922e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "react-google-drive-picker", - "version": "1.1.8", + "version": "1.2.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "react-google-drive-picker", - "version": "1.1.8", + "version": "1.2.0", "license": "MIT", "devDependencies": { "@types/react": "^17.0.5", diff --git a/src/index.tsx b/src/index.tsx index a719373..3d4a804 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -102,7 +102,7 @@ export default function useDrivePicker(): [ const createPicker = ({ token, - appId = '', + appId, supportDrives = false, developerKey, viewId = 'DOCS',