Apps And Solutions
Application
Register an Application
1min
code examples curl location '/developer/apps?organizationid=string\&teamid=string' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "displayname" "vehicle tracker", "type" "web", "listingid" "vehicle tracker", "version" "1 0 9", "isconsolecompatible" "", "visibility" {}, "url" { "setting" { "url" "/dispatch/settings" } }, "shortdescription" "a vehicle tracker that allows you to track your vehicles ", "categories" \[], "menu" \[ { "displayname" "inventory", "displayorder" 4, "relativepath" "inventory" } ] }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "displayname" "vehicle tracker", "type" "web", "listingid" "vehicle tracker", "version" "1 0 9", "isconsolecompatible" "", "visibility" {}, "url" { "setting" { "url" "/dispatch/settings" } }, "shortdescription" "a vehicle tracker that allows you to track your vehicles ", "categories" \[], "menu" \[ { "displayname" "inventory", "displayorder" 4, "relativepath" "inventory" } ] }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("/developer/apps?organizationid=string\&teamid=string", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("/developer/apps?organizationid=string\&teamid=string") http = net http new(url host, url port); request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "displayname" "vehicle tracker", "type" "web", "listingid" "vehicle tracker", "version" "1 0 9", "isconsolecompatible" "", "visibility" {}, "url" { "setting" { "url" "/dispatch/settings" } }, "shortdescription" "a vehicle tracker that allows you to track your vehicles ", "categories" \[], "menu" \[ { "displayname" "inventory", "displayorder" 4, "relativepath" "inventory" } ] }) response = http request(request) puts response read body import requests import json url = "/developer/apps?organizationid=string\&teamid=string" payload = json dumps({ "displayname" "vehicle tracker", "type" "web", "listingid" "vehicle tracker", "version" "1 0 9", "isconsolecompatible" "", "visibility" {}, "url" { "setting" { "url" "/dispatch/settings" } }, "shortdescription" "a vehicle tracker that allows you to track your vehicles ", "categories" \[], "menu" \[ { "displayname" "inventory", "displayorder" 4, "relativepath" "inventory" } ] }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses { "id" {} }// bad request { "error" { "description" "\[relevant error message here]", "additionalinfo" "\[relevant error message here]", "statuscode" 400, "timestamp" "2023 10 06t16 50 10 387z" }, "request" { "url" "", "method" "", "params" {}, "query" {}, "body" {} } }// org or team not found { "error" { "description" "\[relevant error message here]", "additionalinfo" "\[relevant error message here]", "statuscode" 404, "timestamp" "2023 10 06t16 50 10 387z" }, "request" { "url" "", "method" "", "params" {}, "query" {}, "body" {} } }