I am using php sdk to get lsts but getting 401 , i got access token using oauth and passing access token at place of api key in klviyo object but getting unauthenticated
$klaviyo = new KlaviyoAPI(
ACCESS TOKEN(insted of api key),
$num_retries = 3,
$wait_seconds = 3,
$guzzle_options = [],
$user_agent_suffix = "/YOUR_APP_NAME");
Solved
php sdk 401
Best answer by KeviSunshine
>i got access token using oauth and passing access token at place of api key
How did you do this? Which endpoints accept an oauth token? I thought that all of the APIs used either an API (private) key or public key…
Let me know.
Best,
Kevin.
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.