Services

Events happening in the community are now at Drupal community events on 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.

ebhakt's picture

Drupal Management Assembly

Hi
I am bhaskar tiwari
and this is my first piece of software ever written
i have build a wpf c# application running on .net framework 3.5 which runs around the services framework for delevering portal management capabilities from the desktop itself
it means that you no need to open the old lazy web browser and navigate to the old lazy URL's anymore
All you need to do is open my software and configure it for services and keys and it will do the user management (create , edit user accounts), node management (create , edit nodes) and taxonomy wise node management from the desktop itself

Read more
cmcintosh's picture

Aegir And Services API

I have started work on a Service API module that will expose functionality for Management of your Aegir Server remotely on things like iPhone apps, desktop apps, etc.

Cant upload zip here for what i have at the moment, but you can do a +1 here http://drupal.org/node/779256 to help get the project page launched, also feel free to post feature requests here. SO far I have gotten Site.save, Site.get, Site.list working.

Read more
ebhakt's picture

node.save error "Parameter count mismatch" while trying to save with taxonomy

hi,
i am building an app with c# wpf .net v 3.5
i am using the node.save xmlrpc service to save a new node
it works fine untill i try to include taxonomy values with the input parameters

i get this error "Parameter count mismatch" when i try to use the node.save function with taxonomy

can anyone point out what is wrong!!

Read more
gdd's picture

Services events at Drupalcon

Drupalcon is in a couple of weeks, and here are the Services-related events that will be happening

Sunday April 18, all day: Code Sprint
I will be holding a code sprint in the Coder Lounge at the Moscone Center all day on Sunday. The focus will be on the Drupal 7 port of Services, hopefully with discussion of the best way to integrate SimpleTest. I would also love to see some the handbook cleanup work continue.

Monday April 19, 5:30 - 6:30: Drupal as a web services platform using the Services module

Read more
bsenftner's picture

Trying to understand how api keys and the services browser interact/conflict

I'm confused about using the Services browser when api keys are enabled...

Environment:
Drupal 6.16 (actually Pressflow distribution, but still normal Drupal)
Services 6.x-2.0

Installations:
1) (temp while developing) a shared linux server at GoDaddy
2) a shared Linux server at HostGator running Drupal with an Ubercart setup selling custom digital products
3) an XServe at a coLocation running Drupal and proprietary OS X only software

for the moment, installation 1 is mimicking the behavior of installation 3, where the final behavior of the setup is:

Read more
alexandre_fs's picture

Content Profile and User Services

Hello. I am trying to create a new user with User Services and a Flash client (as3). The server is AMFPHP.

The thing is that I have required CCK fields associated with the user thru the Content Profile module.
If these fields are not required I can create the user with no problems with the following code:

var myResponder2:Responder = new Responder(getNodeInfo, onFault);
myService.call('user.save', myResponder2, {name: 'teste2', pass: 'teste2', mail: 'alexandre2@eeedf.com'});

Read more
ebhakt's picture

error while using "taxonomy.selectNodes" function

Hi ,
i am developing an app using c# .
This app displays the list of all nodes using the taxonomy.selectNodes method.
I am having problem displaying the list of all nodes for any taxonomy
it gives the following error:

==================================================================


response contains string value where array expected [response]

OK

==================================================================

the data structure is mapped as follows:

Read more
ebhakt's picture

error in taxonomy.getTree

hi
i am using the services 2.x module and i am at the point where i need to get the vocab tree for a selected vid
what i noticed is that the return value for taxonomy.getTree doesnot containg the name of the vocabulary
it do contain the tid and taxonomy names and the respective vid's but nowhere there is a mention of vocabulary name

Isn't that a bug that should be taken care of ??

Read more
roo's picture

jsonrpc, services and views - need to have imagefield filename in response that is NOT node type.

I saw this mentioned a few times in various posts, but could not find a solution.

If I utilise a view in "node" format, then I do indeed get the imagefield file information required to load the image. HOWEVER, I also get a number of large "blob" style text field contents as the entire node is returned, this requires much more bandwidth (3x more) for each item, at least. Thus making the call slow and wasting time and bandwidth. I also cannot determine how to get fivestar rating values to be returned for each node in the "node" format option.

Read more
roo's picture

correct parameters for file.save and node.save to create a new node with a cck imagefield?

OK, have got file.save working with jsonrpc post content like:

method="file.save"&params={
"file":{
"file":"BASE64STUFF",
"uid":"5",
"timestamp":"1269406525",
"filename":"test.jpg",
"filepath":"sites/default/files/test.jpg"
},
"sessid":"3qbg2lv0bpjlfve3vim0b7t627"
}

and a subsequent node.save with jsonrpc post content like:

{
"field_image": [ {"0": {"fid":"25"} } ],
"uid":"5",
"title":"test node",
"type":"cardobject"
}

Read more
MrPhilbert's picture

Flex versus Flash

This is a test taxonomy in groups

Read more
gateway69's picture

PHP and services question..

I have been trying to use the 6.x-2.0 to try to pull information via XMLRPC but im running into some roadblocks, I found a page that shows how to connect via php/services/api key etc it seems to be outdated or some errors in it..

I was curious if anyone using 6.x-2.0 would share a small snippet of php code that I could test to pull some node data...

Any tutorials on this?

sorry it seems like a lot of people are using this with flex, but im working on non flash services system.

Read more
roo's picture

iPhone + JSON + services + drupal - problems with node.save and file.save

I have two issues I am hoping someone can assist with.

Running Drupal 6.16, services 6.x-2.0, json server 6.x-2.0-alpha1.

Have API disabled, sessid enabled.

Can connect, login and retrieve/parse views and nodes with node.get and views.get.

but have no luck with file.save and node.save.

example file.save = method="node.save"&sessid="aeufrgi2kk1tm1ra8rfacg9et5"&node="{"uid":"5","title":"newcontent","type":"mytype","name":"testuser","body":""}"

the user can create content via the web site with these values, but via the services call they get:

{
"#error" = 1;

Read more
loetmann's picture

Any experience with weborb for PHP?

Hi,
just for the summary: Looking for people with experience using the weborb server module for services.module.

Read more
gdd's picture

Upcoming Events and News

Hey everyone. There is a lot of activity on the Services front right now, so here's some news!

Read more
bg1's picture

Need Drupal to consume other web services of other, remote applications.

Not sure Services is exactly where this belongs, but it the closest I have seen so far.

I want to integrate Drupal with other applications. But in every case, the Drupal application is the junior partner. I.e., I can change my Drupal application but I cannot make any changes to the other applications. I have to use their web services as they are.

Are there any "supported" modules in Drupal that simplify the process of connecting Drupal with remote web services? (Supported meaning that there is an active group behind the module or API involved.)

Thanks.

Read more
dofbi's picture

A problem with python drupal services

Hi i try to run this code on Drupal 6.x but i get an error :
A fault occurred
Fault code: 1
Fault string: Wrong username or password.
can some body already try python to access with Drupal xmlrpc and to get authentificate

#

import xmlrpclib, time

Put the URL for your Service in here. See admin/build/services.

config = {
'url': 'http://twitter.connexionservice.com/services/xmlrpc',
'username': 'developer',
'password': 'password',
}
s = xmlrpclib.Server(config['url'], allow_none=True)
class node:

Read more
priyodevil's picture

invite api integration to services

Hi,

I am developing a flex based frontend to my site and am extensively using the services module. I use the amfphp module to communicate between drupal and my flex frontend. What I would like to do is expose the invite module (http://drupal.org/project/invite) which has it's own api to services so that I can invite people from within flex. I think this can be done by creating a service add-on for the services module. But unfortunately I dion't have the expertise to do the same. Can anyone please help?

This is the api for the invite module:

-- INVITE API --
128

Read more
gdd's picture

Services 2.0 Released

A longer time coming than I had hoped, but I just released Services 2.0! The package is live as we speak, check the release notes for what has changed since the beta release a month ago. Note that there is now an upgrade path, so if you're coming from 0 or 1, everything should be pretty clean. I consider the 2.x branch pretty much feature frozen at this point, and mostly I'll only really be looking at bug fix patches unless someone submits something that is well polished and compelling.

Read more
ebhakt's picture

need help for drupal client

hi there,
i am trying to create a client in c# which connects to any drupal based website and perform operations defined via services module and communicate via xmlrpc
this client will be available for free download once it is complete
now i am at the point when i am trying to use the user.save function
i am currently able to create a new user with a specified email address
however i cannot set the user password using the client
nor i am able to update the user information (like his email address for example) for existing users using the user.save function

Read more
Subscribe with RSS Syndicate content

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: