We are happy to announce the v1.0 release of the OCLC Auth PHP library via Github. This code library is the third implementation that the OCLC Developer Network is releasing to assist developers working with our web services protected by our API key system.
Implementations of this functionality currently exist in three different languages:
We're working on implementations in Java and Python to be released a little later. Additionally, Terry Reese has written the same functionality in C# and you can dig into Terry’s code on Github to see his implementation.
This PHP library can be cloned or checked out from OCLC Developer Network repository and installed by users of OCLC Web Service Keys, or WSKeys. Once installed, your PHP application can construct an OCLC\Auth\WSKey object using your API key and secret. This class can then be used to:
Directions for two installation methods (phar, zip) are included in the README. We've provided usage examples for HMAC, and Explicit Authorization Code flow. Additionally, we're working on making the library installable via Composer and will update the README with those instructions and add a new item to Developer Network when that work is complete. Please let us know what you think or if you encounter any issues by sending us an email.
To learn more about WSKey, check out the recording of our workshop Web Service Keys for APIs
UPDATE: We've added instructions for installing via Composer to the README file. So developers who use this for dependency management can install it this way.
The OCLC Developer Network supports the use of OCLC Web Services—a set of tools and APIs that expose data and services for WorldCat and our member libraries and partner institutions or companies. learn more »
© 2010 OCLC Domestic and international trademarks and/or service marks of OCLC Online Computer Library Center, Inc. and its affiliates