Drupal Web Services

Book description

Integrate social and multimedia Web services and applications with your Drupal Web site.

  • 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.

  • 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.

    Table of contents

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

    Product information

    • Title: Drupal Web Services
    • Author(s):
    • Release date: November 2010
    • Publisher(s): Packt Publishing
    • ISBN: 9781849510981