APIs

API for scanning platoon screenshots

Give a screenshot, get the requirements out of it. Easy as pie.

post
Screenshot scanner

http://echobaseapp.com/platoonAssigner/screenshot/scan
Scan a screenshot for platoon requirements. The contents of the entire screen must be included in the screenshot. For optimal performance, the recommended screen height should be around 650px. Do not send a screenshot with a height under 650px. Slots that have been filled by guild members will be recognized, but not necessarily automatically assigned to that member. This feature is not fully developed yet. combatType, battle, and phase are all used to improve efficiency by limiting the possible results, and are all optional. You can leave out what you don't know or don't wish to limit. Keep in mind that phase goes with battle and will be ignored without it.
Request
Response
Request
Query Parameters
phase
optional
number
1 - 6
battle
optional
string
["RebelAssault", "ImperialRetaliation"]
combatType
optional
string
["Toon", "Ship"]
Form Data Parameters
platoonScreenshot
required
object
This is the uploaded image file. (this is a "file" type)
Response
200: OK
{
"body": {
"platoonNumber": 0,
"platoonScreenshotRequirements": [
[
{
"displayName": "string",
"unitId": "string",
"takenBy": "string"
}
]
]
},
"responseCodes": [
{
"message": "string",
"name": "string",
"type": "Success"
}
],
"success": true
}
400: Bad Request
{
"body": null,
"responseCodes": [
{
"name": "YAVIN_IV",
"message": "The uploaded image must have a height greater than or equal to 640px.",
"type": "Error"
}
],
"success": false
}