Endpoints Reference
Platform Connection

New Platform Connection

code examples curl location globoff '/v1/{siteenv}/{siteid}' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "store id" "", "spark api client id" "", "spark api client secret" "" }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "store id" "", "spark api client id" "", "spark api client secret" "" }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("/v1/{siteenv}/{siteid}", 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("/v1/{siteenv}/{siteid}") 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({ "store id" "", "spark api client id" "", "spark api client secret" "" }) response = http request(request) puts response read body import requests import json url = "/v1/{siteenv}/{siteid}" payload = json dumps({ "store id" "", "spark api client id" "", "spark api client secret" "" }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // successful operation app install pending { "redirect url" "https //store 1234 example io/install" }// successful operation app already installed platform connection is now active // auth failure // system exception