Services

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.

This is a discussion and working group for anyone interested in the Services module and related modules. This module was created out of a need for a standardized solution of integrating external applications with Drupal, specifically Flash and Flex applications. Visit the issues page for all bug reports. Also visit the Services Handbook for information and examples.

RobLoach's picture

OAuth and Security

One issue with the Services API is its weak implementation of API keys. Although it does work, it could be better. It is probably worth it to investigate OAuth, an open protocol to "allow secure API authentication in a simple and standard method from desktop and web applications". Some of you got the chance to see Boris' talk on this in Boston at Drupalcon, any thoughts? How would it effect Services?

Read more
ebeyrent's picture

JSON Server and Facebook

I am currently using Flex to consume an amfphp service, and it works great. However, when you try to use the swf on a Facebook profile, you have to click on an image first in order to load the swf.

My thought was to use the JSON server to return JSON to my facebook app. However, I get hit with the cross domain security issue. Has anyone here successfully accessed the JSON Server from a remote domain?

-Erich-

Read more
napoly's picture

Organic groups..?

Hello.. I'm working on my little app here.. have figured out login, upload avatar.. and so on.. http://metroklub.sk/drulog/bin-release/DrupalLoginApp.html <-- don't know how long it will hang there.. anyway I would like my users to create their own group and let others to join in if they are approved.. nothing really complicated [i guess] but now I don't know which direction to take.. should I role out my own piece of php code with included bootstrap.. or install an organic groups module and try to make a service for it?.. [I don't think I'm skilled enough to write my own services]..

Read more
geraud's picture

Format of the node object in the node.save method form (in services admin interface)

I would like to test the node.save method of the "node" service in the browser of the "services" admin interface.
(/admin/build/services/browse/node.save)

In order to do that, I have to provide the form with an object that will be added to Drupal (if everything works correctly).

But I can't figure out what the format of this node-object should be (array, json,...). What is the syntax ?

Any help would be appreciated.

Cheers

Read more
RobLoach's picture

Abstracted Web Services API for Drupal 7

This is the beginnings of a design specification proposal for an abstracted API for implementing web services within Drupal 7. This allows Drupal to act as both a server and client for web services in any protocol medium (XML-RPC, RDF, RSS, JSON, etc). It is the combined efforts from a number of people at Druplicon including Marc Ingram, Scott Nelson, Nedjo Rogers, Dmitri Gaskin, etc.

Services API

Read more
rodmc's picture

Taxonomies/Categories

Hi I am new to Drupal services, how do make sure an article is posted to the correct categories/taxonomies. I can create new articles via Services without any problem but assigning them to categories is proving a little harder. If it makes any difference I am using the services module with Python.

Thanks in advance.

rod

Read more
RobLoach's picture

Web Services in Drupal 7

Just a quick note that nedjo posted a note about Services module going into core. This would allow use of XML-RPC, JSON, RSS, REST, SOAP and more to be loaded through a common Services API.

A Code Sprint will take place in Boston this coming Friday that will focus on the inclusion of this new Services API.

Read more
Chris Charlton's picture

Are you interested in learning or using Flex?

Yes
55% (99 votes)
Maybe
11% (20 votes)
No
22% (39 votes)
Not sure yet
12% (21 votes)
Total votes: 179
DaKawa's picture

Newbie question

Hi guys

I'm new to drupal and want to start writing my own services.

It all works fine for stuff like node.load and other related services. Now I want to try and create some sort of node.save, but if I visit the node.save page in the Adminster / Services / node.save page, it asks me to enter the following node argument

Arguments (1)

struct node (required)
A node object. Upon creation, node object must include "type". Upon update, node object must include "nid" and "changed".

Does anyony know what the format is that I should use?

I tried several formats like this

Read more
Chris Charlton's picture

Better Drupal Interaction Design with Flex session at Drupalcon Boston 2008

I just got notice that my Better Drupal Interaction Design with Flex session for Drupalcon Boston 2008 was accepted and is being scheduled. I don't know what day it will be on yet, but it should be on Monday or Tuesday since those are the days I'll be at Drupalcon. Here are the points I'll be covering in my time alloted:

  • Differences between HTML & Flex
  • Differences between Flex & Flash
  • What makes an RIA (Rich Internet Application)?
Read more
ismcdonald's picture

Upload files to drupal via web service (from flex/air client)

Hi All,

(Apologies for cross posting - I've put this at http://drupal.org/node/222404 before I realised this might be a better place for it.)

I'm looking for a way to upload fiiles to a drupal site via a web service (from a AIR/ flex application actually) and I after some digging, I don't see anything on the forums or in the contributed modules that addresses this, so I though I'd post before we go ahead and develop a module to do this.

The module would, very simply:

Read more

Proposed Web Service Clients module: Preparing the way for external fields

At the recent Data Architecture Design Sprint, participants outlined a development path in which fields can be local or external. A given entity instance (node, user, etc.) can be fully local, fully external, or a combination of the two. For example, a node can have several fields stored and handled in a local SQL database and other fields both loaded from and written to an external SOAP service.

Read more
arithmetric's picture

Search service

I've developed an additional service to implement Drupal content searching. This service provides one method, search.searchData, which uses Drupal's hook_search (and is closely based on the Drupal API command search_data).

The service accepts up to three arguments:

  1. search_keys: the keywords for the search
  2. type (optional): the type of data to search (i.e. 'node', 'user')
  3. simple (optional): if set, the search returns only the main fields (link, type, title, user, date, snippet) and removes any additional data
Read more
toursheet's picture

HowTo: Contribute Services Code

What is the best way to organize and commit patches back to Drupal modules for Services?

Examples:
* comment.load
* comment.user
* inbox.getmessages
* node.load
* node.save
* node.delete
* user.login
* user.logout
* aggregator.load

User g10 starts the discussion with there should be a consensus bout this:

Read more
wishbone's picture

Drupal login from Flash/Flex

Any docs out there (or example) of logins from Flash to Drupal?
Has this been done before?
Any help is appreciated.

Read more
cspwcspw's picture

How does a service app create a session?

In Drupal 5: My C# application can access my drupal service al. la. Rob's great video. I turn on the session ids for the service, and call the system.connect service to get a sessionID, which I then pass around as the extra parameter in each of my service calls. I authenticate my user, but cannot persist the session state...

Read more
mpenaili's picture

How to call drupal web service from SQL Server 2005

Hi.

How to Consume a drupal xmlrpc web service from SQL Server 2005 Stored Procedure?

Thank's
Marcelo P.

Read more
snelson's picture

DrupalCon 2008 and Services

Hello all,

I will be attending my first DrupalCon at Boston and am working to organize and propose a session about Services. I'm thinking of doing a short presentation about my original vision for Services, and then an open discussion on Drupal and web services in general, expanding on some of the great ideas posted over the last few months.

I'd like to know if there's anything in particular you think the session should cover, and also to connect with anybody who might be thinking of doing a Services related session, or would like to get involved.

Thanks,
Scott

Read more
diego_miola's picture

I need help with this code

I've a created a service that creates a simple Array. Here is the code, modified for debug:

/**
* Returns a bla bla bla.
*/
function node_tree_load($vid, $month) {
global $user;
$list = array();
$sql = "select tid,name
from {term_data}
where vid = '$vid'";
$result = db_query($sql);
while($data = db_fetch_object($result)){
$list[] = $data->name;
$nsql = "select n.nid
from {node} as n,{term_node} as tn
where tn.tid = $data->tid
and tn.nid = n.nid

Read more
RobLoach's picture

Services for Drupal 6

The Services module for Drupal was created to provide a standardized way of supporting communication with external applications and Drupal. XML-RPC, JSON, AMFPHP and REST are just some examples of protocols that can be used as communication mediums. It's a great module which adds a lot of flexibility to Drupal, and it has just been ported to Drupal 6 with a Drupal 6 development branch.

Thanks, Scott Nelson and Marc Ingram for the help in putting this together.

Read more
Subscribe with RSS Syndicate content