Panels
Pureprofile platform is based around panels. All panelists belong to one panel. When registering with Pureprofile one or more panels will be provisioned for you to use for your panelists. Each panel is unique and can be setup differently depending on your needs and requirements. A unique identifier is used to identify each panel. Finally, panels can be setup to support one or more locales. So panelists need to belong to a single panel with one locale.
Avaliable panels
To retrieve available panels that have been set up for your account, you can use the partner/panels/list
endpoint. A sample
is shown below:
- cURL
- Node
- Python
- Go
curl --location --request GET 'https://api.sandbox.pureprofile.io/v1/partner/panels/list' \--header 'Accept: application/json' \--header 'Authorization: Basic <credentials>'
var axios = require("axios");var config = { method: "get", url: "https://api.sandbox.pureprofile.io/v1/partner/panels/list", headers: { Accept: "application/json", Authorization: "Basic <credentials>", },};axios(config) .then(function (response) { console.log(JSON.stringify(response.data)); }) .catch(function (error) { console.log(error); });
import requestsurl = "https://api.sandbox.pureprofile.io/v1/partner/panels/list"payload={}headers = { 'Accept': 'application/json', 'Authorization': 'Basic <credentials>'}response = requests.request("GET", url, headers=headers, data=payload)print(response.text)
package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://api.sandbox.pureprofile.io/v1/partner/panels/list" method := "GET" client := &http.Client {} req, err := http.NewRequest(method, url, nil) if err != nil { fmt.Println(err) return } req.Header.Add("Accept", "application/json") req.Header.Add("Authorization", "Basic <credentials>") res, err := client.Do(req) if err != nil { fmt.Println(err) return } defer res.Body.Close() body, err := ioutil.ReadAll(res.Body) if err != nil { fmt.Println(err) return } fmt.Println(string(body))}
The response of this API is an access_token
that can be used for subsequent Partner API calls:
{ "message": "success", "data": [ { "name": "Australia", "uuid": "30cfebae-1a4e-4238-8ce7-7299eeb12d32", "created_at": "2022-08-23T19:36:11.353906+00:00", "updated_at": "2022-08-29T19:01:16.064269+00:00" }, { "name": "Belgium", "uuid": "efd04721-5a7e-45a2-b0ce-1941e8e0ceb2", "created_at": "2022-08-23T19:36:11.353906+00:00", "updated_at": "2022-08-29T19:01:16.064269+00:00" }, { "name": "Germany", "uuid": "cbf75aec-b4e8-480f-80a8-79615dbd8472", "created_at": "2022-08-23T19:36:11.353906+00:00", "updated_at": "2022-08-29T19:01:16.064269+00:00" }, { "name": "Netherlands", "uuid": "42e27a4b-16c5-4bca-8528-55c36febc0c5", "created_at": "2022-08-23T19:36:11.353906+00:00", "updated_at": "2022-08-29T19:01:16.064269+00:00" } ]}