Skip to content

Instantly share code, notes, and snippets.

@temmings
Last active November 20, 2016 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save temmings/efd03c5ecbd63d8b5e6524a0246f297d to your computer and use it in GitHub Desktop.
Save temmings/efd03c5ecbd63d8b5e6524a0246f297d to your computer and use it in GitHub Desktop.
iQOSphere にパックコードを登録する
#!/bin/bash
set -eu
IQOSPHERE_DOMAIN="https://iqosphere.jp"
IQOSPHERE_LOGIN_API="${IQOSPHERE_DOMAIN}/modules/login"
IQOSPHERE_REGISTER_API="${IQOSPHERE_DOMAIN}/modules/awardpoint"
LOGIN_ID="${YOUR_LOGIN_ID}"
PASSWORD="${YOUR_LOGIN_PASSWORD}"
PACKCODE=$1
curl -c - -s ${IQOSPHERE_LOGIN_API} -d "login_id=${LOGIN_ID}&password=${PASSWORD}" \
| curl -b - ${IQOSPHERE_REGISTER_API} -d "code_list%5B%5D=${PACKCODE^^}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment