Remove debug print lines

This commit is contained in:
Stijn Van Campenhout
2019-11-27 13:39:07 +01:00
parent 3046764750
commit ecc64c05e0

View File

@@ -24,7 +24,6 @@ log = getLogger("rmapipy.rmapi")
DocumentOrFolder = Union[Document, Folder]
class Client(object):
"""API Client for Remarkable Cloud
@@ -87,20 +86,16 @@ class Client(object):
for k in headers.keys():
_headers[k] = headers[k]
log.debug(url, _headers)
if method == "PUT":
print(method, url, json.dumps(body))
r = requests.request(method, url,
json=body,
data=data,
headers=_headers,
params=params,
stream=stream)
if method == "PUT":
print(r.status_code, r.text)
return r
def register_device(self, code: str):
"""Registers a device to on the Remarkable Cloud.
"""Registers a device on the Remarkable Cloud.
This uses a unique code the user gets from
https://my.remarkable.com/connect/remarkable to register a new device