Orbital Scoreboard
API: Post Scores
2 min
please ensure your code does not excessively post or it will get blocked { "tab" "examples", "url" "https //hook integromat com/82bu988v9grj31vxjklh2e4s6h97rnu0", "name" "post new score", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "content type", "type" "string", "description" "application/json" } ], "formdataparameters" \[ { "kind" "optional", "name" "auth", "type" "string", "description" "the players api key they should have gotten from orbitalscoreboard com" }, { "kind" "optional", "name" "player id", "type" "string", "description" "the players id they should have gotten from orbitalscoreboard com " }, { "kind" "optional", "name" "player initials", "type" "string", "description" "the players default initials you can override these with the players entered initials if they get a high score this should be 3 characters " }, { "kind" "optional", "name" "score", "type" "number", "description" "" }, { "kind" "optional", "name" "table", "type" "string", "description" "this should be the cgamename value" }, { "kind" "optional", "name" "version", "type" "string", "description" "pass the current version of the table" } ] }, "results" { "languages" \[ { "id" "ooooted1pqpvod kpskq ", "code" "{\n \\"status\\" \\"success\\",\n \\"row id\\" 3,\n \\"server status\\" 3\n}", "language" "200" }, { "id" "lxlfttcm7glimjkqwwdff", "code" "{\n \\"status\\" \\"failed\\",\n \\"message\\" \\"incorrect data\\"\n}", "language" "404" } ], "selectedlanguageid" "ooooted1pqpvod kpskq " }, "examples" { "languages" \[ { "id" "zpxtl55vhjhm3tsakoxb1", "code" "fetch(\\"https //api cakes com\\", {\n \\"method\\" \\"get\\",\n \\"headers\\" {\n \\"accept\\" \\"application/json\\"\n }\n})\n then(response => {\n console log(response);\n})\n catch(err => {\n console error(err);\n});", "language" "javascript" } ], "selectedlanguageid" "zpxtl55vhjhm3tsakoxb1" }, "responses" \[ { "statuscode" 200, "description" "score successfully retrieved ", "jsonexample" "{\n \\"status\\" \\"success\\",\n \\"row id\\" 3,\n \\"server status\\" 3\n}" }, { "statuscode" 404, "description" "error posting score, something in your formatting was wrong ", "jsonexample" "{\n \\"status\\" \\"failed\\",\n \\"message\\" \\"incorrect data\\"\n}" } ], "description" "this endpoint allows you to post scores ", "currentnewparameter" { "label" "form parameter", "value" "formdataparameters" } } 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