Drupal Web Services

Drupal Web Services
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 20%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
save 7%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Explore different Web services and how they integrate with the Drupal CMS.
  • Reuse the applications without coding them again using the Web services protocols on your Drupal site.
  • Configure your Drupal site to consume various web services by using contributed Drupal modules for each specific task or application.
  • Drive the content from your Drupal site to Facebook, Twitter and LinkedIn using effective Drupal Web services
  • An easy to follow guide that opens up a method of easily sharing data and content resources between applications and machines that are running different platforms and architecture.

Book Details

Language : English
Paperback : 320 pages [ 235mm x 191mm ]
Release Date : November 2010
ISBN : 1849510989
ISBN 13 : 9781849510981
Author(s) : Trevor James
Topics and Technologies : All Books, CMS and eCommerce, Content Management (CMS), Drupal, Open Source, Web Services

Table of Contents

Chapter 1: About Drupal Web Services
Chapter 2: Consuming Web Services in Drupal
Chapter 3: Drupal and Flickr
Chapter 4: Drupal and Amazon
Chapter 5: Drupal and Multimedia Web Services
Chapter 6: Drupal Web Services the Easy Way: The Services Module
Chapter 7: Drupal, Spam, and Web Services
Chapter 8: Using XML-RPC
Chapter 9: Twitter and Drupal
Chapter 10: LinkedIn and Drupal
Chapter 11: Facebook and Drupal
Chapter 12: Authentication Services
Appendix: Modules Used in the Book
  • Chapter 1: About Drupal Web Services
    • What are web services?
      • XML and web services
      • The REST protocol
    • Standards compliance
    • Why are web services useful?
    • Why use web services in Drupal?
    • How Drupal uses web services
    • Drupal as a service consumer
      • Mollom
      • Auto tagging
      • Flickr and Flickr API
      • Apache Solr search integration
      • Facebook
    • Drupal as a service provider
      • Services module
      • RSS
      • AMFPHP
      • XML-RPC
    • Summary
  • Chapter 2: Consuming Web Services in Drupal
    • Using SOAP
      • The SOAP message
      • Enabling SOAP in PHP
    • Using the SOAP Client module
      • Installing and configuring the SOAP Client module
        • Getting started with FedEx Web Services
    • Using FedEx Shipping Quotes module
      • Installing and configuring the FedEx Shipping Quotes for Ubercart module
        • Confirming your Ubercart store settings
        • Entering your test credentials in the FedEx module configuration
        • Testing the FedEx Web Service with our Drupal site
      • SOAP request/call in the FedEx module file
    • Summary
  • Chapter 3: Drupal and Flickr
    • Accessing Flickr
      • Your Flickr account
      • Flickr module
        • Signing up for a Flickr API key
        • Configuring the Flickr module
        • Adding the Flickr filter
        • Setting Flickr module permissions
      • Testing the Flickr module
        • Flickr module blocks
        • Flickr random photo from photoset
        • Flickr random photos block
        • Flickr recent photos and recent photosets
        • Flickr user page photosets, user page random photos, and recent photos
    • Summary
  • Chapter 4: Drupal and Amazon
    • Accessing Amazon
      • Signing up for an Amazon Web Services account
      • Installation and initial configuration of the Amazon module
        • Testing configuration
      • Using the Amazon module
        • Testing the Amazon Example content type
        • Using the Amazon content type with Views
        • Using the Amazon filters
        • Testing the Amazon input filter
      • Amazon Store module
      • Using the Amazon Store module
      • Configuring your Amazon Store
        • Testing your Amazon Store
    • Summary
  • Chapter 5: Drupal and Multimedia Web Services
    • CDN2 video
      • Accessing the CDN2 web service
        • Signing up for the CDN2 web service
        • Configuring the CDN2 module
      • Adding videos using CDN2
        • Uploading videos with CDN2 content type
    • Using the Kaltura module and web service
      • Accessing the Kaltura service
        • Importing and uploading Kaltura video content
    • Using the Media: Flickr module
    • Summary
  • Chapter 6: Drupal Web Services the Easy Way: The Services Module
    • The Services module—what is it?
      • The Services module—why use it and what does it buy you?
        • Deployment module
        • Content distribution
      • Installing and enabling the Services module
        • Testing a simple service callback
    • Creating a Services module and running a custom callback
      • Creating custom Services module
        • Adding to our function to allow for returning Photo nodes data
        • Adding a database query to our custom Services module
        • Adding arguments
    • Summary
  • Chapter 7: Drupal, Spam, and Web Services
      • Installing and configuring CAPTCHA and reCAPTCHA
      • Image CAPTCHA
      • reCAPTCHA
    • AntiSpam
      • Installing and configuring AntiSpam
        • Additional TypePad/AntiSpam module settings
        • AntiSpam moderation queue
    • Mollom module
      • Configuring the Mollom web service
        • Choosing the content that Mollom will protect
        • Mollom reports and statistics
    • Summary
  • Chapter 8: Using XML-RPC
    • XML-RPC and Drupal
      • Drupal Blog API and Google Docs
        • Enabling and configuring Blog API
        • Setting up a Google Documents account
        • Posting the Google Document to Drupal
        • Testing and viewing the document on your Drupal site
        • Removing posts
      • Syncing content between Drupal sites
      • Using the Deployment module with Services
        • The Deployment module
      • Installing, enabling, and configuring Deployment
    • Summary
  • Chapter 9: Twitter and Drupal
    • Twitter and Drupal
      • The Twitter API
      • The Twitter module
      • Integrating the Twitter module with Drupal
      • Registering your website with Twitter
        • Setting up a Twitter application
        • Configuring the Twitter module once you have your app setup
        • Setting up OAuth configuration
        • Setting up your user account to integrate with Twitter
      • Posting your Drupal nodes as tweets to your Twitter account
      • Showing tweets in blocks on your Drupal site
        • Twitter module page and block Views
        • Actions and triggers with the Twitter module
    • Tweet module
      • Configuring short URLs
        • Configuring the Tweet module
    • Summary
  • Chapter 10: LinkedIn and Drupal
    • LinkedIn and Drupal
      • Installing the LinkedIn Integration and OAuth modules
      • Using the LinkedIn Integration module
        • Status update and promoting content to LinkedIn
        • Setting permissions
        • Posting LinkedIn profile data to Drupal
        • Posting Drupal content to LinkedIn
        • Checking usage statistics for the LinkedIn module
    • Summary
  • Chapter 11: Facebook and Drupal
    • What is Facebook?
    • Drupal and Facebook
      • Requirements for running Drupal for Facebook
      • Installing and enabling Drupal for Facebook
      • Installing the Facebook libraries
    • Setting up Canvas Pages
    • Creating your first Facebook app
      • Configuring Drupal to work with your Facebook app
        • Testing the Facebook application
        • Editing your Facebook application settings
    • Summary
  • Chapter 12: Authentication Services
    • OpenID and Drupal
      • Enabling and configuring the OpenID module
      • Setting up the OpenID server/provider
    • OAuth and OAuth Connector
      • Using OAuth Connector
      • Configuring a provider connection for Twitter
        • Setting up the Twitter developer application account
    • Summary
  • Appendix: Modules Used in the Book
    • Modules used in Chapter 1
      • CCK
      • Mollom
      • Auto Tagging
      • AMFPHP
    • Modules used in Chapter 2
      • SOAP Client
      • FedEx web services
      • FedEx shipping quotes for Ubercart
      • Ubercart
      • Token
    • Modules used in Chapter 3
      • Flickr account and API key
      • Flickr module
      • idGettr
    • Modules used in Chapter 4
      • Amazon web service and API key
      • Amazon module
      • Features
      • Views
      • Amazon store module
    • Modules used in Chapter 5
      • CDN2 web service
      • CDN2 video module
      • Kaltura web service
      • Kaltura module
      • Media: Flickr
      • Embedded media field
    • Modules used in Chapter 6
      • Services module
    • Modules used in Chapter 7
      • CAPTCHA
      • reCAPTCHA
      • AntiSpam
    • Modules used in Chapter 8
      • BlogAPI module
      • Google Documents
      • Deployment module
    • Modules used in Chapter 9
      • Twitter module
      • Tweet
      • Shorten URLs
      • Short URL
    • Modules used in Chapter 10
      • OAuth module
      • Autoload
      • Input Stream
      • LinkedIn Integration
    • Modules used in Chapter 11
      • Drupal for Facebook
      • Facebook Connect
      • Facebook - Auth
    • Modules used in Chapter 12
      • Google Apps authentication
    • Summary

Trevor James

Trevor James is a Drupal developer residing in Middletown, MD, USA. Trevor has been using Drupal intensively since 2007 and designing websites for over 15 years using a combination of HTML, CSS, ColdFusion, PHP, jQuery, and JavaScript.

Trevor's focus is on building Drupal-based web applications and portals for education, non-profit, and medical systems, and small business environments. He is interested in the best methods of integrating web services with Drupal sites, optimizing Drupal sites' performance, and using Drupal content types, Views, Panels, and other contributed modules to develop front-end interfaces that support data intensive websites.

He loves teaching people about Drupal and how to use this excellent open source content management framework. Trevor authored the following Packt books:

  • Drupal 7 Business Solutions (http://www.packtpub.com/drupal-7- business-solutions-to-build-powerful-web-site/book), published in early 2012
  • Drupal Web Services (http://www.packtpub.com/drupal-web-services/book), published in November 2010
  • Drupal 6 Performance Tips (https://www.packtpub.com/drupal-6-performance-tips-to-maximize-and-optimize-your-framework/book), published in February 2010

Trevor created a 14-hour video tutorial series titled Drupal 7 for Virtual Training Company (VTC) in 2011. The video is available via the VTC website at http://www.vtc.com/products/Drupal-7-Tutorials.htm.

Code Downloads

Download the code and support files for this book.

Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Drupal Web Services +    Sakai CLE Courseware Management: The Official Guide =
50% Off
the second eBook
Price for both: $41.55

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Become well versed with Drupal Web services and Web service integration.
  • Integrate the Flickr photo sharing app with your Drupal site.
  • Integrate Amazon.com content with your Drupal site so you can serve your site users a rich e-commerce based experience.
  • Get real time shipping quotes from FedEx and integrate these with your Ubercart powered shopping cart.
  • Add video content to your Drupal site using CDN2 and Kaltura.
  • Install and configure the Drupal Services module.
  • Prevent spam submissions using CAPTCHA, reCAPTCHA and Mollom.
  • Deploy Google documents content to your Drupal site via XML-RPC.
  • Pick any Drupal content and post it to Twitter.
  • Integrate Facebook with Drupal using the Drupal for Facebook module.
  • Discuss Drupal Web service authentication methods to enhance your site security

In Detail

Drupal is a rich and dynamic open source content management system that can feed content into its framework from other Web applications including Facebook, Flickr, Google, Twitter, and more, using standard communication protocols called web services. You may be aware that content can be driven to your Drupal site from different web applications, but when you think of experimenting with this, you can get bogged down due to limited knowledge of web services. Imagine how you will feel when you catch sight of a book that covers powerful web services that help you to integrate your Drupal site with different web applications

This book covers efficient Drupal web services that help you to speed up your connections to Web applications. It will compel you to learn more and more about web services and use them to easily share data and content resources between different applications and machines. This book also covers the usage of each web service for different purposes. It provides step-by-step instructions on integrating Web services and Web applications with your Drupal powered Web site.

Drupal Web services will show you how to work with all kinds of Web Services and Drupal. The book shows you how to integrate Amazon.com content into your site; add multimedia and video to your site using video services including CDN2 and Kaltura. You will learn how to prevent spam using CAPTCHA, reCAPTCHA and Mollom. You will also learn to explore the different types of Web services Drupal offers and can integrate with using the Services module and XML-RPC. Next you will learn to push content from Google documents, deploying this text and image based content as Drupal nodes.

Next you'll integrate Your site with Twitter, Facebook and LinkedIn and show how to post content from Drupal to these social networking applications automatically. At the end you will be enlightened with authentication methods for integrating Web services with Drupal.


A practical hands-on guide to integrating Web services with your Drupal Web site. It will start from basic understanding of web services to how your Drupal site can be integrated with web applications using web services.

Who this book is for

If you’re are a Drupal user, webmaster, or an administrator who wants to integrate Flickr, Facebook, Twitter, Amazon, LinkedIn, Kaltura and Mollom with your Drupal site then this book will be a good addition to your Drupal library.

You do not need to have programming experience to use this book. Drupal Web Services is written for anyone who works with Drupal on a daily basis.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software