Authenticating to the API
The Spreedly API leverages standard HTTP Basic Authentication for API requests.
To use the API, simply pass the environment key for the environment you want to use as the username along with an access secret as the password.
Using curl, the command looks something like this:
$ curl -u 'environment-key:access-secret' <options> <url>
Almost all code samples in the Spreedly documentation use a test environment key and access secret. Simply replace them with your environment key and access secret to access your data.