Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Use HTTP Basic Authentication with your applicationId and secret. This "Authorization: Basic <string>" should be your "AppIdapplicationId:Secretsecret", not an authentication token from the edgeAuth library.

...

Code Block
PUT /pcast/channel HTTP/1.1
Host: pcast.phenixrts.com
Accept: application/json
Authorization: Basic YXBwbGljYXRpb25JZDpzZWNyZXQ=
Content-Type: application/json

The string following Authorization: Basic is simply base64-encoded “applicationId:secret”. Substitute your AppID and Secret, separated by a colon and then base64-encoded, in your headers when using the Phenix APIs..

Note

base64 encoding is a reversible encoding. Always use HTTPS along with Basic Authentication.

To create an authorization string using your own applicationId and secret

  1. Concatenate your applicationId with a colon and your secret

  2. Base64 encode the resulting string

For example, if your applicationId is examplecompany.com and your secret is Not.a.real.secret007gaH.E-f)z4+9, the concatenated string would be

examplecompany.com:Not.a.real.secret007gaH.E-f)z4+9

And the base64-encoded string would be:

ZXhhbXBsZWNvbXBhbnkuY29tOk5vdC5hLnJlYWwuc2VjcmV0MDA3Z2FILkUtZil6NCs5

When using Phenix APIs, your headers would include:

Authorization: Basic ZXhhbXBsZWNvbXBhbnkuY29tOk5vdC5hLnJlYWwuc2VjcmV0MDA3Z2FILkUtZil6NCs5