Skip to main content
Solved

php sdk 401

  • May 30, 2024
  • 1 reply
  • 34 views

Forum|alt.badge.img+1

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

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.

1 reply

KeviSunshine
Expert Problem Solver III
Forum|alt.badge.img+8
  • Expert Problem Solver III
  • 160 replies
  • Answer
  • May 30, 2024

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