Fetch what a user drank on their first/latest visit to each venue (opt-in)
untappd_sync_venue_drinksFetches and caches beer and date from each cached venue's first and most-recent check-ins. Use it to see what a user drank at venues without pulling full check-in history.
Instructions
OPT-IN, costs API calls: for a user's cached venue history (run untappd_sync_user_venues first), fetch the FIRST and MOST-RECENT visit check-ins of each venue via checkin/view (works for any public check-in) and cache the beer + date — a PARTIAL "what did they drink there" (two check-ins per venue at most, never the full list). One call per check-in, most-visited venues first, at most max_calls per run (default 10, max 50); already-cached check-ins are never re-fetched, and deleted/private ones (404) are remembered and skipped. Narrow with venue_ids and which. Stops BEFORE the ~100 calls/hour rate limit (or cleanly on a 429) with stopped_for_rate_limit and rate_limit.resume_at; run again until another_run_needed is false. Results appear in untappd_cache_has_visited under matches[].drinks. Stores only beer, brewery and date — never comments. Omit username for your own account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| which | No | Fetch each venue's first-visit check-in, most-recent one, or both (default both). | |
| username | No | Untappd username. Omit to use your own configured account (UNTAPPD_USERNAME). | |
| max_calls | No | checkin/view calls this run (default 10, max 50). Each is one of the ~100 hourly calls. | |
| venue_ids | No | Only these venues (from untappd_cache_has_visited). Default: every cached venue, most-visited first. |