Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

closes #148 : Google drive #151

Closed
wants to merge 4 commits into from

Conversation

2 participants
@ApolllonDev
Copy link

commented Apr 14, 2019

@perry-mitchell I have created a draft PR for the Google Drive feature.

Similar to the Dropbox example I made a menu item as can be seen on the screenshot below.

2

I am still working on the authentication component and I would really appreciate some guidance with the connection-token:

Object is not a constructor (evaluating 'new _googledriveClient.default("https://buttercup.pw/5fstmwjaisrt06t")')
<unknown>
    C:\...\buttercup-mobile\source\library\googleDrive.js:3
loadModuleImplementation
...

What should I use as a token in this case?

/**
 * Create a new Google Drive client adapter using a token
 * @param {String} token The Google Drive token
 * @returns {GoogleDriveClientAdapter} A client adapter instance
 * @memberof module:GoogleDriveClient
 */
function createClient(token) {
...
}

Please advice.

@perry-mitchell

This comment has been minimized.

Copy link
Member

commented Apr 22, 2019

Hi @ApolllonDev - Sorry for the delay.

What should I use as a token in this case?

The token is provided by Google after authorisation. The browser extension has the google auth stuff implemented, and it requires a bit more work in terms of getting a token than say dropbox. You can see by that MR that it's a bit of code to get the google API working to provide a token for a client secret+id combo.

If you need these values to continue, which I assume you might, you could consider contacting me on Keybase under perrymitchell.

@ApolllonDev ApolllonDev closed this Jun 2, 2019

@ApolllonDev ApolllonDev deleted the ApolllonDev:google-drive branch Jun 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.