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.

Documentation for data requirements for creating nodes through the JSON Restful Server (Services 3, Drupal 7)

Posted by lisa.rae on January 23, 2013 at 8:33pm

We have a project to complete for a client that involves setting up a restful web service backend for a set of mobile apps for Android and iOS. We have elected to use Drupal as our restful server and utilize the JSON service available through Services 3 along with the spyc library.

Read more

Automatically creating and configuring services endpoints

Posted by tmetzger on January 17, 2013 at 4:48pm

Hi folks,

I've got hundreds of sites communicating with each other using the old services 2 xml-rpc system, which of course is unsupported. I'd like to move to services 3, and I've got all my API calls working with 2-legged OAuth.

Read more

Mobile4Social WikiVillage - mobile application based on Drupal

Posted by shushu on December 4, 2012 at 2:59pm

Hello all,
Only local images are allowed.
We are pleased to release another Android application from the hands of Mobile4Social.com.
In this case, the owners of WikiVillage.co.za were looking for jump into the mobile world, and decided to use our technology as the basis.

Read more

user.update xml-rpc method - Missing required argument data

Posted by dianacastillo on November 27, 2012 at 8:29pm

Hi, I am sending the below xml for user.update and I get "Missing required argument data" . what am i doing wrong

<?xml version="1.0"?>
<methodCall>
<methodName>user.update</methodName>
<params>
<param>
<struct>
<member>
<name>uid</name>
<value><int>48</int></value>
</member>
<member>
<name>name</name>
<value><int>sally</int></value>
</member>
</struct>
</param>
</params>
</methodCall>
Read more
2 comments Categories: , ,

questions about user.register

Posted by dianacastillo on November 26, 2012 at 10:26pm

How can I specify the uid in the user.register method instead of having Drupal automatically assign it ? (using xml-rpc) Also how can I specify the role (s) for this user ? I tried
role
editor

but it ignores this. thank you

Read more
2 comments Categories: ,

questions about user methods with xml-rpc

Posted by dianacastillo on November 26, 2012 at 10:24pm

I need to know the method names and the expected structure for modifying and deleting users with xml-rpc using drupal's Services module.
There is an example for user.register here http://drupal.org/node/1299978 but I cant find where the other methods are documented. Thank you, diana

Read more
Categories: ,

index

Posted by DrMiaow on November 20, 2012 at 1:41am

Took me hours to locate this information.

If you want to use the 'index' operation in services, it takes only three parameters

page (the page number)
fields (the fields to include).
parameters (the actual parameters) - these are passed directly into the query, so these need to be node record field names.

eg:

/api/test/rest/node?fields=nid,title&parameters[type]=playlist&page=1

Read more

Performance Problems Using Services 7.x-3.2

Posted by bst2002 on November 19, 2012 at 1:30pm

Hello,

i'v startet to create a connection via services3 REST-Server to/from my php-driven website (at this time both my-site and drupal are on same machine).

I noticed that if i use/connect via services3 node.login enormous CPU usage about 30%-70%, normaly on my machine is between 0-10% (MAX).

i made different test with Apache Jmeter:

login/logout via normal drupal site(drupal form-login) cpu usage low, as expected

when i use http://drupal-site.tld/services_api/user/login (logout) the CPU usage increases by 30%-70% and that is too much!

Read more

How to Upload images without Base64 encoding

Posted by metow on November 15, 2012 at 11:21pm

In my android application , I can upload files to my Drupal 6 server using services module file resource in which I first Base64 encode the file and send it via a StringEntity as follows:


HttpClient httpClient = new DefaultHttpClient(connectionParameters);
HttpContext localContext = new BasicHttpContext();

JSONObject json = new JSONObject();
json.put("file", Base64.encodeToString(photodata,Base64.DEFAULT));
json.put("uid", getUid());
json.put("filename", file_name);

StringEntity se = new StringEntity(json.toString());

Read more
2 comments Categories: ,

External Database connection Display results in Forms table as sortable pagination

Posted by shad_khan on November 9, 2012 at 5:48pm
Last updated by shad_khan on Fri, 2012年11月09日 17:48

<?php
/**
* @file
* This module is for core db search and send selected items via email.
*
* In this module, a user (registered) can search the url list and result will be displayed as list.
* The submitted data will be stored in custom table email_sents with user data , and emails will be sent.
*/

/**
* Menu for Endpoint
*
* Implementation of hook_menu().
*/
function my_module_menu() {

$items['my-module'] = array(
 'title' => t('My Module'),
 'description' => t('Search form'),
 'page callback' => 'drupal_get_form',
Read more

Specification for system resource set_variable, get_variable, del_variable using REST

Posted by jaimeah on November 1, 2012 at 5:41pm

I have been looking for a specification for using the variable setting actions of the system resource, but I haven't found anything. I am using Services 3.x and Drupal 7. Any suggestions or recommendations?

Read more
Categories:

I'm SO close with Services (REST), just need the final pieces

Posted by spoco2 on October 31, 2012 at 4:03am

So, I have finally (After much mucking about) got myself a drupal REST service running using 2-Legged OAuth for authentication. This is working, in that I can request http://drupalsite/myEndPoint/node to get a list of nodes, and http://drupalsite/myEndPoint/node/1 to get a particular node in XML or JSON format... and that's SO CLOSE to all I want.

Except...

Read more

help with URL arguments to make REST server output taxonomy fields

Posted by twoblackeyes on October 10, 2012 at 4:47am

Hi everyone,

I'm a bit of a beginner to the Services module. On my site, I have a view that displays taxonomy fields from specific terms, filtered by a term from another vocabulary. For example, I have a vocabulary of terms called "nightclubs" and a vocabulary called "neighborhoods" that's used to sort each nightclub. Each nightclub is associated with a neighborhood via a taxonomy field. My view shows me a list of terms (nightclubs) in whatever neighborhood term is passed through the contextual filter, and a few fields for each term (name, description, address, etc).

Read more

Mobile4Social.com Privatemsg integration - free mobile app for your community

Posted by shushu on October 4, 2012 at 8:46am

Hello all,
We are happy to release the new project by Mobile4Social.com - an integration between Android app and Drupal Privatemsg module.
Please take a look at the demo video of the application, install it and try it out to see the integration we offer.

Read more

Viewing a Rest end point logs me out of Drupal

Posted by rjdjohnston on September 27, 2012 at 11:37pm

Hello,

We're using Services with Service Views and Rest. When I visit the end point (domain.com/services/rest/tv) the data is displaying correctly but when I navigate to my other screen I find out I have been logged out of Drupal.

This error is displayed when I refresh Drupal:

Notice: Undefined index: rest_server in services_endpoint_callback() (line 196 of /vhosts/dev.worldviewweekend.com/html/sites/all/modules/contrib/services/services.module).

This happens every time I refresh the endpoint.

Any ideas?

Thanks

Read more

How to read JSON Data and render it using theme_table function?

Posted by njmahesh on September 26, 2012 at 12:34pm

I don't want to store the data in Drupal. I need to read JSON data from external URL and render that in my theme.

I could use Feeds and JSONPath Parser module if I want to store in Drupal but I just want to read. I am also tying Services module.

Any suggestions, tips would be huge help!

Thanks in advance

Read more
17 comments Categories:

Any good links on getting started with drupal 8 and services?

Posted by yurtboy on September 22, 2012 at 9:28pm

Tons of great stuff for d7 and maybe most of it will not change for d8 but I just figured I would ask before I dig in.
Thanks
Al

Read more
2 comments Categories: ,

Please help me with Services

Posted by PainKIller on September 20, 2012 at 6:54pm

Hello everybody! I am flash-developer and total newbi to Drupal. I have book "Flash with Drupal" by Travis Tidwell and I want to learn to develop flash apps with Drupal as back-end. So I installed Drupal 6.26 then several modules. So I have installed Chaos CTools 6.x-1.9, flashNode (6.x-3.1), Services (6.x-3.1), AMFPHP (6.x-1.0-beta2) and Views (6.x-2.16). I did all like was in the book, and everything was OK, no Error messages etc, but after installing Services, I’ve found in this module no services (in the book there was File service, menu service, node service etc).

Read more

Drupal 5: Flag integration?

Posted by matute on September 11, 2012 at 12:15am

Hi all!!

I need to integrate the flag module to services module in Drupal 5.

Yes I know that Drupal5 is too all but I'm doing a concepto test of my project, then in the near future I have to migrate to Drupal7.

If there isn't such integration, where I can read some documentation for developing such a module for Drupal5??

Thanks!

Read more

Client to Server

Posted by HarishVaran on September 4, 2012 at 6:06am

In practice session: we planned to create comment from client side, so we write a code using drupal_services_api.md.

Here the code is:

//planned to create comment in server from client.
$request_url = 'http://local.server.com/js-comment/cid';
$request_headers = array('Content-Type' => 'application/json');
$request_method = 'POST';

Read more
Categories:
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:

Hot content this week

AltStyle によって変換されたページ (->オリジナル) /