Cleaning house on various linting and dev configuration messiness

This commit is contained in:
2026-05-30 14:54:04 -07:00
parent 5a740c8d4d
commit 23868fc873
6 changed files with 227 additions and 3 deletions

View File

View File

@@ -0,0 +1,27 @@
# curl version which is working now
bopit() {
URL='https://api.kroger.com/v1'
CID=$(pass dev/kroger/client_id)
SID=$(pass dev/kroger/secret)
TOKEN=$(echo -n "${CID}:${SID}" | base64)
curl -X POST 'https://api.kroger.com/v1/connect/oauth2/token' \
--verbose \
-H 'Content-Type: application/x-www-form-urlencoded' \
-u "${CID}:${SID}" \
-d 'grant_type=client_credentials' \
-d 'scope=product.compact'
}
test_call() {
PID='0001111040119'
curl -X GET \
"https://api.kroger.com/v1/products/${PID}" \
-H 'Accept: application/json' \
-H 'Authorization: Bearer ${TOKEN}'
}
KROGER_CLIENT_ID=$(pass dev/kroger/client_id) KROGER_SECRET=$(pass dev/kroger/secret) bun run src