-
-
Notifications
You must be signed in to change notification settings - Fork 13
Home
Peter Adams edited this page Nov 6, 2021
·
13 revisions
Use of the OWA PHP SDK requires OWA Server credentials:
- API Key - this is the public key generated for each OWA user. It can be found on the user's admin profile page.
- Secret Auth Key - this the secret
OWA_AUTH_KEY
for your OWA Server instance. It's found in theowa-config.php
file of your OWA Server instance.
These credentials can be made available to the OWA PHP SDK in one of the following ways:
- As environment variables
- As PHP constants
- A local file
If you do not provide credentials to a client object at the time of its instantiation, the SDK will attempt to find credentials in your environment when you call your first operation. The SDK will use the $_SERVER superglobal
and/or getenv()
function to look for the OWA_API_KEY and OWA_AUTH_KEY environment variables.
Credentials can be defined as PHP constants as part of your application like so:
define('OWA_API_KEY', 'your-api-key-goes-here');
define('OWA_AUTH_KEY', 'your-secret-key-goes-here');