Web Service APIs and Libraries

Web Service APIs and Libraries

Jason Paul Michel

Language: English

Pages: 152

ISBN: 083891182X

Format: PDF / Kindle (mobi) / ePub


This book shows how to enhance an institution's presence on the Web with tools that integrate a variety of handy, popular programs.  Application Programming Interfaces (APIs) are software tools that help different programs work together, and Michel shows readers how to integrate these into existing library websites as well as use them to launch new kinds of services.  With step by step guidance, this book

  • Uses real-world examples to show how APIs can be used to promote library materials and events, visualize data, educate patrons, and mobilize library services 
  • Demonstrates how to create and manage widgets for photo galleries, instant reporting on computer/printer availability, featured book titles and book reviews from library users, tracking usage data, and many other library functions
  • Includes instructions for working with popular tools such as Flickr, YouTube, Vimeo, Twitter, Google Charts, OCLC, WordPress, Goodreads, LibraryThing, and the Hathi Trust
  • Provides plentiful screenshots, snippets of HTML code, and easy-to-follow samples to ensure that even novices will feel comfortable integrating APIs into their marketing plans

Focusing on widely adopted tools that all have immediate, useful applications, this practical book will help extend any library's reach.

Beginning Haskell: A Project-Based Approach

PHP Quick Scripting Reference

Developing Web Applications with Oracle ADF Essentials

Responsive Theming for Drupal: Making Your Site Look Good on Any Device

HTML5 and CSS3 Responsive Web Design Cookbook

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

and has presented on these projects at state and national library conferences. © 2013 by the American Library Association. Any claim of copyright is subject to applicable limitations and exceptions, such as rights of fair use and library copying pursuant to Sections 107 and 108 of the U.S. Copyright Act. No copyright is claimed for content in the public domain, such as works of the U.S. government. Printed in the United States of America 17 16 15 14 13    5 4 3 2 1 Extensive effort has gone into

[usRightsString] => Full view ) . . . 75 76 CHAPTER SIX The [fromRecord] field contains the Hathi ID. To place that number into a variable we will use this one line of code: $record = $data->items[0]->fromRecord; To test this variable use the echo command: echo $record; When you reopen this file in the browser, you should see 001505930 printed out to the screen. Now that it is in a variable, we can more easily use it in other parts of the script. Before continuing, comment out

http://www.librarything.com/services/rest/1.1/?method=librarything.ck.getwork&​ isbn=0316017922&apikey=your_developer_key Continuing the script: because we are working with an XML response, we will need to employ the use of cURL, as we did with the WorldCat Basic API. First, we initialize the cURL session, with the understanding that the data will be pulled from the $url variable: $ch = curl_init($url); Next, we set our cURL options: curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

library, and so on—and present the tweets in a unified interface. This application would give staff nothing but relevant tweets from which engaging discussions can spring. Twitter API Technical Details Twitter API Overview As of this publication, the Twitter API actually consists of three separate APIs, a problem Twitter plans to fix in the future. The three APIs are the Twitter REST API, the Search API, and the Streaming API. I will cover each API below. As mentioned in the introduction, the

have the data we need to display in nice arrays, we can begin displaying that data. As mentioned earlier, I am supplying a different icon depending on whether the printers are up or down. To do this I’ve created two separate CSS divs with different styles. These next few lines of code will determine which CSS div to apply and print out: if (preg_match('/#\bup\b/', $king_array[0])) { print '

King

'; } if (preg_match('/#\bdown\b/', $king_array[0])) {

Download sample

Download