API: Post Scores
2 min
Please ensure your code does not excessively post or it will get blocked.
Post New Score
This endpoint allows you to post scores.
POST
https://hook.integromat.com/82bu988v9grj31vxjklh2e4s6h97rnu0
Header Parameters
- Content-typestringrequiredDescription
Form Parameters
- authstringDescription
- player idstringDescription
- player initialsstringDescription
- scoreNumber
- tablestringDescription
- versionstringDescription
javascript
fetch("https://api.cakes.com", {
"method": "GET",
"headers": {
"Accept": "application/json"
}
})
.then(response => {
console.log(response);
})
.catch(err => {
console.error(err);
});200
{
"status": "Success",
"row id": 3,
"server status": 3
}404
{
"status": "Failed",
"message": "incorrect data"
}Example Post
{ "auth": "f4c0b21f-c285-11e9-ba09-42010a8a0000", "player id": "MMChamp", "player initials": "MMC", "score":123456, "table":"hpgof", "version":"40" } |
|---|
Orbital MYSQL db location
wp_orbitalsb > scores