SiroDiaz / php-klaviyo-api

Low level but elegant Klaviyo full API wrapper for PHP with asynchronous track event support
https://packagist.org/packages/siro/php-klaviyo-api
MIT License
13 stars 7 forks source link

People search - undocumented endpoint #12

Closed pogla closed 3 years ago

pogla commented 4 years ago

@SiroDiaz I got information about undocumented endpoint:

curl -X GET \
  https://a.klaviyo.com/api/v2/people/search \
  -H 'Accept: */*' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \
  -H 'accept-encoding: gzip, deflate' \
  -H 'api-key: 'YOUR_PRIVATE_KEY' \
  -d '{"email":"test@test.com"}'

With this call, it's possible to request a user ID by email.

SiroDiaz commented 3 years ago

@pogla I should only allow documented endpoints. But if you want to implement it because it is a must for you, feel free to make a pull request, i will merge it for the next release.