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.

Sherif Darwish's picture

Drupal services as backend for mobile application

I am developing ionic mobile application and i am using drupal as my backend for authentication & content creation.

It is all working great, however; I am now integrating facebook & twitter login to my app which will login the user using his facebook or twitter account.

My question is, how do i authenticate the same user to my drupal back-end using services so i can deal with this user as normal registered drupal user.

I was going to call the service register then login APIs after successful facebook login then i realized i need to double check if the same user register before

Read more
spuppett's picture

How can I pass an argument containing periods using Services?

Is there a way to have arguments passed in the path that contain periods? I have product ids that contain periods, and I'd like something like /info/ In my callback, I'm just returning the argument, and printing a log with Watchdog. Just passing product works as expected, but isn't returning anything and watchdog isn't logging anything.


Read more
vkakani's picture

Retrieve a specific version (vid) of a node : D7

How do we retrieve a specific revision (vid) attributes of a node.

Works :[nid]=5&parameters[vid]=34 [vid=34 is the latest version version id]

Doesn't Works :[nid]=5&parameters[vid]=31 [vid=31 is the second version version id]

Please advise, how to construct the query to pull the a specific version ID related node attributes

Drupal Version : D7

Read more
casivaagustin's picture

Guía para Servicios REST en Drupal 7

Hola, les escribo para compartirles este Doc que escribí sobre servicios REST en drupal 7, es una guía bastante completa que surge del trabajo que realizamos en nuestra empresa y la escribí para que todos los que trabajan en la misma tengamos la misma visión sobre como laburar con el modulo Services y sus amigos.

Espero que les sirva

Read more
thummel's picture

Consuming SOAP for SSO

Hi, I'm looking for a consultant that can help me consume soap for SSO from a third party service.

Read more
foredoc's picture

Integration of Drupal with c/c++ computational server


I need to:

1) use drupal-powered web interface to collect user input (parameters);
2) invoke the computational modules/softwares written in c/c++ on a computational server with the parameters collected from the drupal site.
3) return the computational results to the drupal site.

I have been searching on the drupal sites, and I am wondering if Services module fit into my needs. If it is, can anybody give me some hints on how to achieve my goals?

Suggestions are very much appreciated.



Read more
casivaagustin's picture

Services + Oauth + JWT

Hello everybody, first of all I'm kind of lost here so If I'm not using the right terminology or what I'm saying have no sense please feel free to correct me, second I'm trying to get more information about this subject so any comment is really apreciated.

I'm trying to use Services with the Oauth2 Server but Using JWT.

I enabled the Services module, Created my own custom Endpoints, with no auth, worked perfectly.

I Enabled the Oauth2 Server, configured the server, the clientes, the scope. It worked.

Read more
firoz2456's picture

How to fetch Views total number of records in page.tpl.php before views.tpl called.

See this image for more understanding.

I want to fetch Views total number of records in page.tpl.php before views.tpl called. Is it possible to fetch that row total before views rendered? I am also using contextual filter for this view. Views have page type display.

I have also used module but this will print total number of records on Views header or footer. (Not outside of views)

Read more
skybow's picture

Why is a date field posted in one format and returned in a different?

I started working on a C++/Qt library for accessing a Drupal site via Services and a REST server (I'm more into C++ than PHP and Drupal module hacking), when I ran into the following problem: When I retrieve a node via node.retreive request, modify some fields of the returned JSON object and repost the changes via node.update request, Date field content will be killed.

Read more
EmmyS's picture

Unable to log in following quick-start guide (total beginner)

I've just installed the Services module, so I'm very new at this. I'm trying to follow the quick start guide at I was able to perform the first step (getting a token) using the REST Client add-on for Firefox. But when I try the second step (logging in), it returns nothing. No errors, just nothing.

Any ideas? Screenshot attached (and yes, for this test, "drupal_user" really is my username and password.)

Read more
darkdim's picture

JSON request to form for creating a node

Please help to properly create Jason request to send a form to create a node

I get an error:

"form_errors": {
    "field_product][und][form][sku": "SKU field is required.",
    "field_product][und][form][commerce_price][und][0][amount": "Discount Price field is required.",
    "field_product][und][form][commerce_sales][und][0][value": "Sales field is required.",
    "field_timending][und][0][value": "A valid date is required for <em class=\"placeholder\">Valid Until</em>."

what am i doing wrong?

the query such

{"type": "deal","title": "Some title",

Read more
pmunch's picture

Cannot post node as authenticated user from phonegap

Hi all,

I have spent hours trying to figure this out as well as finding relevant code examples, I'm stuck...

I'm building a basic phonegap app that should allow to post a node as authenticated user. I can successfully login, but I cannot further post as this authenticated user thru X-CSRF-Token: I always get 403 - "Access denied for user 001" ...

I summed up the steps I follow in the dummy loginAndPost() function below.


function loginAndPost() {

// Set some vars

var username = "001";
var password = "001";
var server_uri = "http://my-drupal-website";
Read more
klimpab's picture

Service Module and REST: 404 Not found

Hello! I hope that this is the right place.

I strictly followed this guide. The REST Server is activated. I try to access http://localhost/rest/user/token.json (the Drupal installation is at localhost) via the Firefox REST Easy Add-On. No success. It always gives me a "404 Not Found" error.

Under the "Resources" Tab of the Service Module configuration, all resources are enabled. What am I doing wrong?

Read more
dsteplight's picture

Drupal Play Day at The Phase2 Treehouse 330 West 38th Street Suite 1405, New York, NY

2015-02-21 12:00 - 17:00 America/New_York
Event type: 
Training (free or commercial)

Read more
Chris87's picture

Rest Service path

I have been playing with the Services module for a couple of days. According to REST API best practices, the GET URL paths I want to use are:

'Building' and 'room' are both content types, and '4' and '5', the node-ids.

Using the Services module, I can create the following calls:

And with the Services Views module, I can customise the path a little more:

But the only way to get a specific building is by:

Read more
bogdog400's picture

Aggregator Module Extension | consultant

Employment type: 

We need some help building a small module that will build an RSS block by implementing hook_aggregator_fetch so the URL will change dynamically with the page.

Let us know your time estimates and preferred payment methods.

Read more
jari.hollsten's picture

Check if a field value is present using json

I'm new to both services and json.
What I would need to achieve is to have a field on registering a new user to be checked if the value is present in another database using json. And if it is, go ahead registering the user otherwise throw an error message.

Read more
swafran's picture

Services REST node create - tnid not set


I'm using services and rest_server v.7.x-3.7 to update translations on my site.

When creating a node for a translation, I set the tnid, but it is always written in the db as 0.

If I change line 312 of from:

$stub_node = (object) array_intersect_key($node, array_flip(array('type', 'language')));


$stub_node = (object) array_intersect_key($node, array_flip(array('type', 'language', 'tnid')));

The tnid is properly written to the db and everything works fine.

Read more
freescholar's picture

Power To Connect with VoIP Drupal - Beta Launch!!!

The agaric team has launched the BETA version of We are using VoIP Drupal to enable Event Organizers and participants to send and receive messages using a regular phone.

BoF (Birds of a feather) organizers can send text updates to interested people that have signed up, or attendees can call +1 617 648-5578 and enter the extension of the BoF to hear updates, or subscribe to a Bof and receive txt updates.

Come help us test it out by posting your BoF session, or subscribing to one for DrupalCon Austin!

Read more
ersigui's picture

New install drupal, REST server failed to create a user by using poster(firefox) or postman (chrome).

Hi everyone, after googled around two days, I decided to create a discussion here. I don't know if anyone can noticed this problem. I'm trying to use poster add-on in firefox to create a user in drupal. The parameters are user:test, pass:test, After I post it, drupal created a user called test, BUT! the tricky thing is I can't login by using the username and the pass which I just created. Anyone knows why? My guess is that I config something bad, or miss-installed something. The article I followed is Thank you, any idea would be nice.

Read more
Subscribe with RSS Syndicate content