Migrating from SPIP

There is a module that migrates from SPIP to drupal 6.x. It is currently (April 2010) in active development.

It provides a plugin for spip so it depends on versions above 1.8 (I think) that introduced a interface for plugins.

http://drupal.org/project/spip2drupal

External Frameworks

Many people have made frameworks that allow other languages/platforms to integrate more easily with Services. Here are the projects we are currently aware of. Please feel free to add your own!

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.

On the remote server:

1) Install Services, enable the Services, XMLRPC Server, Key Authentication, System Service, and User Service modules.

2) Services run as the anonymous user, so you will need to modify the anonymous user's permissions as necessary. For this example, you will need to give the anonymous user 'get own user data' (under user_services module).

3) Go to Administer->Site Building->Services->Settings and choose 'Key authentication' from the drop down labeled 'Authentication module'. Then check 'Use SessID'. Submit the form. All services calls are now required to include session ID information.

In order to prevent bots from cluttering up the sessions table, you must have an active anonymous session before logging in to Drupal. So that is the first thing we do with system.connect. This session ID is saved to the 'deploy_sessid' variable, which all other xmlrpc calls to the remote server pass.


// Get anon session. system.connect is the only service that does
// not require a sessionid even when you have 'Use Sess ID' checked.
//
// If your drupal installation is in a subdirectory, the following url should be
// http:////services/xmlrpc

Creating a user comment wall

Advanced Profile Kit comes preset with the "status wall" content type provided by Facebook Style Statuses added to the variant. If you use FBSS, you don't need to do anything; it will be there automatically. If you don't use FBSS, there are a couple other options for adding a "wall" to your profiles.

Comments on the profile node

If you are using nodes for your profiles, you can make use of the comments on that to make a wall. To do this, go into the "add content" section of the variant, remove the FBSS content type, and add in the comment form & comments.

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:
http://drupal.org/node/1118366#comment-4312286

Services offers the ability to control access via API keys. This requires
setting up a key on the remote server, and putting together a specially
crafted call on the requesting server. This document gives an example of how
to set this up in Drupal using the user.get service.

On the remote server:

1) Install Services, enable the Services, XMLRPC Server, System Service, Key Authentication, and User Service
modules.

2) When using API key authentication, Services runs as the anonymous user, so you will need to modify the anonymous user's permissions as necessary. For this example, you will need to give the anonymous user 'get own user data' (under user_services module).

Version 5

Services samples and tutorials for Version 5.x. Please put these samples here.

External Tutorials:

Pages

Subscribe with RSS Subscribe to RSS - Programmers