Amazing Books
Temporary Blank

Saturday, September 17, 2011

Drupal Web Services






Table of Contents
Preface 1
Chapter 1: About Drupal Web Services 7
What are web services? 8
XML and web services 9
The REST protocol 10
Standards compliance 11
Why are web services useful? 12
Why use web services in Drupal? 12
How Drupal uses web services 14
Drupal as a service consumer 14
Mollom 14
Auto tagging 16
Flickr and Flickr API 17
Apache Solr search integration 17
Facebook 18
Drupal as a service provider 18
Services module 18
RSS 19
AMFPHP 20
XML-RPC 20
Summary 22
Chapter 2: Consuming Web Services in Drupal 23
Using SOAP 24
The SOAP message 25
Enabling SOAP in PHP 27
Using the SOAP Client module 28
Installing and configuring the SOAP Client module 28
Getting started with FedEx Web Services 32
Using FedEx Shipping Quotes module 32
Installing and configuring the FedEx Shipping Quotes for Ubercart module 33
Confirming your Ubercart store settings 38
Entering your test credentials in the FedEx module configuration 38
Testing the FedEx Web Service with our Drupal site 43
SOAP request/call in the FedEx module file 48
Summary 48
Chapter 3: Drupal and Flickr 49
Accessing Flickr 50
Your Flickr account 51
Flickr module 52
Signing up for a Flickr API key 52
Configuring the Flickr module 54
Adding the Flickr filter 56
Setting Flickr module permissions 56
Testing the Flickr module 57
Flickr module blocks 62
Flickr random photo from photoset 66
Flickr random photos block 67
Flickr recent photos and recent photosets 68
Flickr user page photosets, user page random photos, and recent photos 68
Summary 70
Chapter 4: Drupal and Amazon 71
Accessing Amazon 72
Signing up for an Amazon Web Services account 73
Installation and initial configuration of the Amazon module 73
Testing configuration 76
Using the Amazon module 78
Testing the Amazon Example content type 78
Using the Amazon content type with Views 80
Using the Amazon filters 83
Testing the Amazon input filter 84
Amazon Store module 85
Using the Amazon Store module 86
Configuring your Amazon Store 87
Testing your Amazon Store 90
Summary 91
Chapter 5: Drupal and Multimedia Web Services 93
CDN2 video 94
Accessing the CDN2 web service 95
Signing up for the CDN2 web service 96
Configuring the CDN2 module 98
Adding videos using CDN2 101
Uploading videos with CDN2 content type 104
Using the Kaltura module and web service 105
Accessing the Kaltura service 106
Importing and uploading Kaltura video content 109
Using the Media: Flickr module 111
Summary 118
Chapter 6: Drupal Web Services the Easy Way:
The Services Module 119
The Services module—what is it? 120
The Services module—why use it and what does it buy you? 121
Deployment module 121
Content distribution 122
Installing and enabling the Services module 122
Testing a simple service callback 126
Creating a Services module and running a custom callback 131
Creating custom Services module 132
Adding to our function to allow for returning Photo nodes data 135
Adding a database query to our custom Services module 136
Adding arguments 138
Summary 139
Chapter 7: Drupal, Spam, and Web Services 141
CAPTCHA and reCAPTCHA 142
Installing and configuring CAPTCHA and reCAPTCHA 142
Image CAPTCHA 146
reCAPTCHA 147
AntiSpam 150
Installing and configuring AntiSpam 150
Additional TypePad/AntiSpam module settings 152
AntiSpam moderation queue 154
Mollom module 156
Configuring the Mollom web service 156
Choosing the content that Mollom will protect 158
Mollom reports and statistics 160
Summary 163
Chapter 8: Using XML-RPC 165
XML-RPC and Drupal 165
Drupal Blog API and Google Docs 166
Enabling and configuring Blog API 167
Setting up a Google Documents account 168
Posting the Google Document to Drupal 170
Testing and viewing the document on your Drupal site 173
Removing posts 176
Syncing content between Drupal sites 176
Using the Deployment module with Services 177
The Deployment module 177
Installing, enabling, and configuring Deployment 178
Summary 186
Chapter 9: Twitter and Drupal 187
Twitter and Drupal 187
The Twitter API 188
The Twitter module 189
Integrating the Twitter module with Drupal 189
Registering your website with Twitter 191
Setting up a Twitter application 191
Configuring the Twitter module once you have your app setup 196
Setting up OAuth configuration 198
Setting up your user account to integrate with Twitter 198
Posting your Drupal nodes as tweets to your Twitter account 200
Showing tweets in blocks on your Drupal site 201
Twitter module page and block Views 203
Actions and triggers with the Twitter module 206
Tweet module 208
Configuring short URLs 209
Configuring the Tweet module 210
Summary 214
Chapter 10: LinkedIn and Drupal 215
LinkedIn and Drupal 215
Installing the LinkedIn Integration and OAuth modules 217
Using the LinkedIn Integration module 218
Status update and promoting content to LinkedIn 220
Setting permissions 221
Posting LinkedIn profile data to Drupal 222
Posting Drupal content to LinkedIn 226
Checking usage statistics for the LinkedIn module 228
Summary 229
Chapter 11: Facebook and Drupal 231
What is Facebook? 232
Drupal and Facebook 232
Requirements for running Drupal for Facebook 233
Installing and enabling Drupal for Facebook 234
Installing the Facebook libraries 237
Setting up Canvas Pages 238
Creating your first Facebook app 239
Configuring Drupal to work with your Facebook app 243
Testing the Facebook application 244
Editing your Facebook application settings 247
Summary 248
Chapter 12: Authentication Services 251
OpenID and Drupal 251
Enabling and configuring the OpenID module 252
Setting up the OpenID server/provider 253
OAuth and OAuth Connector 258
Using OAuth Connector 259
Configuring a provider connection for Twitter 261
Setting up the Twitter developer application account 265
Summary 269
Appendix: Modules Used in the Book 271
Modules used in Chapter 1 274
CCK 274
Mollom 274
Auto Tagging 275
AMFPHP 275
Modules used in Chapter 2 275
SOAP Client 276
FedEx web services 276
FedEx shipping quotes for Ubercart 276
Ubercart 277
Token 277
Modules used in Chapter 3 277
Flickr account and API key 277
Flickr module 278
idGettr 278
Modules used in Chapter 4 278
Amazon web service and API key 278
Amazon module 278
Features 279
Views 279
Amazon store module 279
Modules used in Chapter 5 280
CDN2 web service 280
CDN2 video module 280
Kaltura web service 281
Kaltura module 281
Media: Flickr 281
Embedded media field 282
Modules used in Chapter 6 282
Services module 282
Modules used in Chapter 7 282
CAPTCHA 283
reCAPTCHA 283
AntiSpam 283
Modules used in Chapter 8 284
BlogAPI module 284
Google Documents 284
Deployment module 284
Modules used in Chapter 9 285
Twitter module 285
Tweet 285
Shorten URLs 286
Short URL 286
Modules used in Chapter 10 286
OAuth module 286
Autoload 287
Input Stream 287
LinkedIn Integration 287
Modules used in Chapter 11 287
Drupal for Facebook 288
Facebook Connect 288
Facebook - Auth 288
Modules used in Chapter 12 289
Google Apps authentication 289
Summary 289
Index 291


Another Web Services
Download

No comments:

Post a Comment

Related Posts with Thumbnails
There was an error in this gadget

Put Your Ads Here!
There was an error in this gadget