Kyoko Kirigiri Discord Bot API Documentation
Making Requests
All requests are to follow one or the other formats below:
`{"h":{"key":"<keyhere>"},"d":{"rq":"<requesthere>"}}`
{"h":{"key":"<keyhere>"},"d":{"rq":"<requesthere>"}}
Objects:
h: headers, Type: dict
key: api authkey, Type: str
d: data, Type: dict
rq: request, Type: str
GET / Economy Data
`{"h":{"key":"<keyhere>"},"d":{"rq":"economy","id":<idhere>}}`
Objects:
rq: economy, Type: str
id: user_id, Type: int
STORE / Upload File
`{"h":{"key":"<keyhere>"},"d":{"rq":"storage_upload"}}`
Objects:
rq: storage_upload, Type: str
TIP: The file that you want to store must be uploaded with the same message as the request
GET / Download File
`{"h":{"key":"<keyhere>"},"d":{"rq":"storage_download","file":"<filename>"}}`
Objects:
rq: storage_download, Type: str
file: filename, Type: str
POST / Delete File
`{"h":{"key":"<keyhere>"},"d":{"rq":"storage_delete","file":"<filename>"}}`
Objects:
rq: storage_download, Type: str
file: filename, Type: str
GET / Ping
`{"h":{"key":"<keyhere>"},"d":{"rq":"ping"}}`
Objects:
None
GET / Level Data
`{"h":{"key":"<keyhere>"},"d":{"rq":"level","id":<idhere>}}`
Objects:
rq: level, Type: str
id: user_id, Type: int