Skip to content

Commit 3e2907f

Browse files
digithreeclaude
andcommitted
Fix Pocket API calls - use POST method for all endpoints
- Change requests.get() to requests.post() for /v3/get endpoint - Change requests.get() to requests.post() for /v3/stats endpoint - Restore full progress bar functionality with total item count - /v3/stats endpoint is functional but undocumented The core issue was HTTP method, not deprecated endpoints. All API calls now use POST as required by Pocket API. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1d2170e commit 3e2907f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pocket_to_sqlite/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def ensure_fts(db):
6969

7070

7171
def fetch_stats(auth):
72-
response = requests.get(
72+
response = requests.post(
7373
"https://getpocket.com/v3/stats",
7474
{
7575
"consumer_key": auth["pocket_consumer_key"],
@@ -106,7 +106,7 @@ def __iter__(self):
106106
}
107107
if self.since is not None:
108108
args["since"] = self.since
109-
response = requests.get("https://getpocket.com/v3/get", args)
109+
response = requests.post("https://getpocket.com/v3/get", args)
110110
if response.status_code == 503 and retries < 5:
111111
print("Got a 503, retrying...")
112112
retries += 1

0 commit comments

Comments
 (0)