Last active
          November 20, 2016 19:43 
        
      - 
      
 - 
        
Save temmings/efd03c5ecbd63d8b5e6524a0246f297d to your computer and use it in GitHub Desktop.  
    iQOSphere にパックコードを登録する
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/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