Merge remote-tracking branch 'refs/remotes/origin/main'
This commit is contained in:
commit
c836387169
5 changed files with 32 additions and 8 deletions
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -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.
|
10
README.md
10
README.md
|
@ -1,4 +1,4 @@
|
|||
King of Time CLI
|
||||
King of Time CLI (unofficial)
|
||||
=================
|
||||
|
||||
<!-- toc -->
|
||||
|
@ -7,14 +7,18 @@ King of Time CLI
|
|||
* [Commands](#commands)
|
||||
<!-- tocstop -->
|
||||
|
||||
<p align="center">
|
||||
<img src="white_rabbit.jpg" />
|
||||
</p>
|
||||
|
||||
# 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
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
}),
|
||||
})
|
||||
|
|
BIN
white_rabbit.jpg
Normal file
BIN
white_rabbit.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 54 KiB |
Loading…
Reference in a new issue