Explorar el Código

Fix readwise token

Accidentally shipped this hard-coded. Token is long-size revoked,
but obviously hard to use this way!
mAAdhaTTah hace 2 años
padre
commit
18e89bee3d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      archivebox/parsers/readwise_reader_api.py

+ 1 - 1
archivebox/parsers/readwise_reader_api.py

@@ -32,7 +32,7 @@ class ReadwiseReaderAPI:
     def get_archive(self):
         response = requests.get(
             url="https://readwise.io/api/v3/list/",
-            headers={"Authorization": "Token s71gNtiNDWquEvlJFFUyDU10ao8fn99lGyNryvyllQcDSnrd7X"},
+            headers={"Authorization": f"Token {self.api_token}"},
             params={
                 "location": "archive",
                 "pageCursor": self.cursor,