How to set authorization

Basic authentication header containing API user ID and API key. Should be sent in as B64 encoded.Can you give an example of how API user ID and key are concatenated?

Comments

  •  
    'headers' => [ 'Authorization' => 'Basic ' . base64_encode(x_reference_id . ':' . api_key) ]
    Posted by Hidden Mon, 15 Apr 2019 18:26:45 GMT
  •  
    yep. format is correct. but variables are wrong instead of api_key try primary_key should be 'headers' => [ 'Authorization' => 'Basic ' . base64_encode(x_reference_id . ':' . primary_key) ] user_UUID:primary_key
    Posted by Hidden Tue, 16 Apr 2019 21:19:51 GMT


You're not signed in. Please sign-in to report an issue or post a comment.