good morning, we would like to use your bees in order to display some data on one of our control panels.
I wanted to know if there is an example of calls api on github or anyway some examples of curl I am attaching my call code to understand maybe where I'm wrong and if there are working examples where you can take a cue thanks.
$ url = 'https://api.kontakt.io/device';
$ privKey = 'xxxxxxxxxxxxxxxxxxxxx';
$ Type = 'GATEWAY';
$ rest = curl_init ();
// curl_setopt ($ rest, CURLOPT_URL, $ url. $ prox. "& major =". $ major. "& minor =". $ minor);
curl_setopt ($ rest, CURLOPT_URL, "deviceType =". $ type);
curl_setopt ($ rest, CURLOPT_HTTPHEADER, array ("Api-Key:". $ privKey, "Accept: application / vnd.com.kontakt + json; version = 10", "Content-Type: application / x-www-form- urlencoded; charset = utf-8 "));
$ response = curl_exec ($ rest);
echo $ response;
understand more than anything else how to pass all the parameters and the structure to use thanks.
Please sign in to leave a comment.