Login   Register  
PHP Classes

File: examples/ThingLang.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Robert van der Linde  >  LibraryThing Services  >  examples/ThingLang.php  >  Download  
File: examples/ThingLang.php
Role: Example script
Content type: text/plain
Description: example for ThingLang
Class: LibraryThing Services
Get book information using the LibraryThing API
Author: By
Last change:
Date: 5 years ago
Size: 528 bytes


Class file image Download
 * Instantiate the service
$service = new ThingLangService();

 * Search for the original language of the book identified by ISBN
 * 01928495729.
 * Will return something like 'chi', 'dut', 'eng', etc.
$language $service->getLang('01928495729');

 * Search for the original language of the book identified by ISBN
 * 01928495729. Returns the full name of the language
 * Will return something like 'Chinese', 'Dutch', 'English', etc.
$language $service->getLang('01928495729'true);