Campaign Monitor v3.0.0 Release Notes
Release Date: 2013-03-25 // about 11 years ago-
➕ Added support for authenticating using OAuth. See the [README](README.md#authenticating) for full usage instructions.
- This introduces some changes to how you authenticate using this library. You now authenticate by passing an
$auth
array as the first argument when creating instances of any classes which inherit from theCS_REST_Wrapper_Base
class.
So in existing code, when you previously would have authenticated using an API key as follows:
$wrap = new CS_REST_General('Your API Key'); $result = $wrap->get_clients();
If you want to authenticate using an API key, you should now do this:
$wrap = new CS_REST_General(array('api_key' => 'Your API Key')); $result = $wrap->get_clients();
- This introduces some changes to how you authenticate using this library. You now authenticate by passing an