gkeepapi | An unofficial client for the Google Keep API | REST library
kandi X-RAY | gkeepapi Summary
kandi X-RAY | gkeepapi Summary
An unofficial client for the Google Keep API.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parse a list of nodes .
- Get changes from the server .
- List all occurrences
- Sort a list of items .
- Send a request to the API .
- Find all redundant nodes
- Refresh OAuth token .
- Create an annotation from a dict .
- Return the location of a given blob .
- Indent a child item .
gkeepapi Key Features
gkeepapi Examples and Code Snippets
sensor:
- platform: google_keep
username: !secret google_keep.username
password: !secret google_keep.password
labels:
- 'Home Assistant'
pinned: true
mkdir -p custom_components/google_keep
cd custom_components/google_keep
wget https://github.com/PiotrMachowski/Home-Assistant-custom-components-Google-Keep/releases/latest/download/google_keep.zip
unzip google_keep.zip
rm google_keep.zip
> python --version
> pip install -r requirements.txt
> python keep-test.py
class Note:
def __init__(self, title, other):
self.title = title
self.other = other
def __repr__(self):
return '{} - {}'.format(self.title, self.other)
gnotes = [Note('OneTitle', 'bla'), Note('Ztitle', 'b
Community Discussions
Trending Discussions on gkeepapi
QUESTION
Anybody else having trouble with adding labels to notes in gkeepapi
?
ANSWER
Answered 2019-Feb-05 at 02:59I would say just about every bug in the history of computers was caused by someone with the thought "I think I'm doing the right thing" in their head :-)
More seriously, the label that you add to a note is meant to be label rather than a string. That's supported by the fact that it's trying to get your label identifier from a string object (which doesn't have one):
'str' object has no attribute 'id'
This is actually described in the link you provided, just three sections up from your anchor point:
Creating Labels
New labels can be created withKeep.createLabel()
:
label = keep.createLabel('todo')
: : blah blah blah
Manipulating Labels on Notes
When working with labels and notes, the key point to remember is that we’re always working withnode.Label
objects or IDs.
Hence you can create a label and add it to the note with the lines:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gkeepapi
You can use gkeepapi like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page