Version 6.2

Code samples and tutorials for Services 6.2. Please put samples for this version here.

2.x API key authentication

Please Note: This is only for Services 1.x and 2.x. See kylebrowning's suggestion here for 3.x:

API key authentication using REST Server module

This example should also work fine for 6.1

API key authentication using XML-RPC.{PHP client node.save - Location, CCK text fields }

This is some sample code from an "API" we're using to allow remote non Drupal, PHP client applications to utilize services to add stories to

Accessing a Drupal xmlrpc server using api key and session id from php

So Drupal has this amazing services module that I have used before in earlier versions. Now I am upgrading an important site to Drupal 6

Example: User login with API key using PHP

Here is an example of a PHP script that calls the Services module's packaged XML-RPC server. This example uses the system.connect, user

Example: file.save, node.save via XML-RPC in Python

Sample code for using the Services API via XML-RPC

Example: node.save and CCK fields in PHP client code

Services 6.x-2.x-dev on Drupal 6.14. Uses the XML-RPC for PHP library at http://phpxmlrpc.sourceforge.net/. Thanks to clues from http:/

Example: user login using API key and node_resource.create and CCK fields in PHP client code using xmlrpc server

Services 6.x-2.2 create node using Drupal services module and xmlrpc server in php client .

JavaScript - CCK Text Fields in the Node Object // Cross-method Insights

JavaScript - CCK Text Fields in the Node Object // Cross-method Insights

JavaScript - Comment.Save

// #### COMMENT.SAVE

JavaScript - JSON Server & Request.JSON (MooTools Example)

JavaScript - JSON Server & Request.JSON (MooTools Example)

JavaScript - JSON Server & Request.JSONP (MooTools Example)

JavaScript - JSON Server & Request.JSONP (MooTools Example)

JavaScript - Node.Save & Edit // Cross-method Insights

// #### JavaScript - Node.Save & Edit // Cross-method Insights

PHP: get data with XMLRPC, no authentication, and a custom Service module

A guided example of how to get data out of drupal on an external site, using the XMLRPC server that comes with Services, and a custom module

Soap service with Services and phpSoap

The current Soap server module uses nuSoap. Development of NuSoap has been on hold for sometime now. phpSoap now provides all functions that

Soap service with Services, Soap Server and User Authentication

Using session-based authentication

Services provides the ability for clients to log in to a remote server as a specific user, and perform further actions using that session.

xmlrpcConnector (php) extensible and ready to use from any website (not only from Drupal websites)

Here is an xmlrpcConnector class for connecting to the xmlrpc server of the Services module.

Guide maintainers

gdd's picture