diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..44e9836 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Adam Millerchip + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index b2cb84f..4c7b7bf 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -King of Time CLI +King of Time CLI (unofficial) ================= @@ -7,14 +7,18 @@ King of Time CLI * [Commands](#commands) +

+ +

+ # Usage ```sh-session $ kot checkin -TODO example output +{ result: 'OK', image_result: '0', comment_result: '0' } $ kot checkout -TODO example output +{ result: 'OK', image_result: '0', comment_result: '0' } ``` # Installation diff --git a/package.json b/package.json index 4705104..3827554 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "kingoftime-cli", "version": "0.0.0", - "description": "King of Time CLI", - "author": "Adam Millerchip @adamu", + "description": "King of Time CLI (unofficial)", + "author": "Adam Millerchip", "bin": { "kot": "./bin/run" }, diff --git a/src/kingoftime.js b/src/kingoftime.js index d9454bd..f86ecab 100644 --- a/src/kingoftime.js +++ b/src/kingoftime.js @@ -6,8 +6,7 @@ const CHECK_OUT_ID = 'j8ekmJaw6W3M4w3i6hlSIQ==' async function kingoftime(operationId, token, userToken) { const response = await axios({ method: 'post', - // url: 'https://s2.kingtime.jp/gateway/bprgateway', - url: 'https://httpbin.org/anything', + url: 'https://s2.ta.kingoftime.jp/gateway/bprgateway', headers: { Accept: 'application/json, text/javascript, */*; q=0.01', }, @@ -16,7 +15,7 @@ async function kingoftime(operationId, token, userToken) { highAccuracyFlg: 'false', credential_code: '40', // eslint-disable-line camelcase user_token: userToken, // eslint-disable-line camelcase - version: '1.4.2', + version: '1.4.16', token: token, }), }) diff --git a/white_rabbit.jpg b/white_rabbit.jpg new file mode 100644 index 0000000..55ecc9b Binary files /dev/null and b/white_rabbit.jpg differ