Advantech People & Groups API - PHP client
SSO: https://sso.advantech.world

1. Create the device key on the server that will call the API (keep the private key there):

   openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:P-256 -out device-private.pem
   openssl pkey -in device-private.pem -pubout -out device-public.pem

2. Send device-public.pem, the server's IP address and the data you need to the SSO
   administrator. You receive the device Client ID (dev_...).

3. Write the Client ID in people.env (PEOPLE_CLIENT_ID=dev_...). The SSO address is already there.
   Environment variables of the same name win over the file.

4. Run the demo:

   # PHP 8+ with the curl and openssl extensions
   
   # put your device Client ID in people.env:  PEOPLE_CLIENT_ID=dev_...
   
   php people_client.php john.chen@advantech.com sales

   Who can receive mail (needs the recipients.search permission): put  recipients jay
   after the run command instead of the e-mail address and keyword.

Full reference: https://sso.advantech.world/developers/people
