Skip to main content

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");

>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.