kiwiz / gkeepapi

An unofficial client for the Google Keep API.
MIT License
1.54k stars 114 forks source link

Add another way to get master token, implement uploading blobs to the server #137

Closed rukins closed 10 months ago

rukins commented 1 year ago

Hey, thanks for your project! I have created the similar library, but on Java.

And I wanna suggest some improvements for this python library:

  1. Implement another way to get master token without deviceId. You just need an authentication token that can be obtained by logging in your Google account here. The description how to do it you can find on GitHub Page of gpsoath-java library. It is also my library. Server contract see here
  2. Implement uploading blobs (for now only images). As far as i understand, in this library it is unavailable, only pulling images form the server. You can do it by making a request to https://notes-pa.googleapis.com/upload/notes/v1/media/ See detailed all server endpoints here
  3. And also here you can find all possible values for extraction status of image blob.

I am ready to help with any questions you have.

kiwiz commented 1 year ago

Thanks for the references! I'll take a look at this once I'm done with #130

jakubklos77 commented 11 months ago

If this works then this seems to be the only way to make gkeepapi working again

rukins commented 11 months ago

I am not sure if it works now, but i can check and implement it

rukins commented 11 months ago

Using this method to get a master token works fine :) I have updated the readme of the gpsoath-java library project to provide more detailed instructions

jakubklos77 commented 11 months ago

Thank you @rukins. In that case this is the only working method now as the app password way does not work anymore (mentioned in other issues - even when using the docker image). @kiwiz Could you please take a look at this when you have time? Thank you

kiwiz commented 11 months ago

@jakubklos77 The PR to add this flow is here: https://github.com/simon-weber/gpsoauth/pull/41

jakubklos77 commented 11 months ago

@kiwiz You the man! Thank you

kiwiz commented 10 months ago

Closing in favor of #81. Splitting out blobs implementation into new issue.