-
Notifications
You must be signed in to change notification settings - Fork 9
Home
KanColle Badge Generator accepts POST requests to set your admiral information, collections of ships, etc.
Your data can be sent to one of the following URLs depending on your preferred language:
- http://threebards.com/kaini/index.php (English)
- http://threebards.com/kaini/index-jp.php (日本語)
- http://threebards.com/kaini/index-cn.php (简体中文)
with some key-value pairs as specified below.
All fields below are optional. Missing fields leave the corresponding information blank.
Terms:
- Type: if a field has type
<stringified>
, you should useJSON.stringify
or equivalent to encode your JSON object. - Ship master id: refers to ship ids found in
data.api_mst_ship
fromkcsapi/api_start2
.
Field | Type | Description |
---|---|---|
ttkName |
String |
Admiral name |
ttkLvl |
Number |
Admiral level |
ttkServer |
Number |
Server id, See here |
fleet |
<stringified> |
Current fleet information ("Fleets" tab), See below. |
ships |
<stringified> |
A list of all ship's master ids in your possession. |
k2Flag |
String |
Set it to on fills "Kai Ni + Blueprint" tab, other value has no effect |
colleFlag |
String |
Set it to on fills "Poster Collection" tab, other value has no effect |
It should contain an array of 4 elements, each of which contains 6 ship objects.
a ship object looks like: {lvl: <ship level>, id: <ship master id>}
. If that fleet is not available, or there is no ship in that place, use null
instead.
Example (before stringify):
[
[
{"lvl":128, "id":318}, {"lvl":116, "id":118}, null,
null, null, null
],
[
{"lvl":51, "id":402}, {"lvl":12, "id":128}, {"lvl":17, "id":127},
{"lvl":20, "id":126}, null, null
],
[
{"lvl":74, "id":218}, {"lvl":41, "id":204}, {"lvl":41, "id":203},
{"lvl":42, "id":345}, {"lvl":41, "id":202}, {"lvl":41, "id":206}
],
[
{"lvl":96, "id":464}, {"lvl":42, "id":329}, {"lvl":42, "id":294},
{"lvl":42, "id":355}, {"lvl":41, "id":327}, {"lvl":36, "id":359}
]
]
- "Kai Ni + Blueprint" tab will be filled when
ships
is set andk2Flag
is set toon
- "Poster Collection" tab will be filled when
ships
is set andcolleFlag
is set toon
In your ships
field, put in all ship master ids that you have collected.
Our generator will take care of all remodeling issues, to name a few:
- if
如月改二
(id435
) is present, it counts as如月
(id2
) in "Poster Collection" tab. - the presence of
Bismarck drei
sets bothBismarck zwei
andBismarck drei
in "Kai Ni + Blueprint" tab
Example of field ships
(before stringify):
[246,259,434,250,206,202,208...]