Services

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.

bogdog400's picture

Aggregator Module Extension | consultant

Employment type: 
Contract
Telecommute: 
Allowed

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

Hi

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 node_resource.inc from:

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

to:

$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 PowerToConnect.com 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, mail:test@test.com. 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 https://drupal.org/node/790416. Thank you, any idea would be nice.

Read more
ldpm's picture

Having trouble accessing arguments from my custom Resource

Hi, I'm new to creating Resources, and I'm having difficulty accessing the raw body from the POST. That body contains JSON that looks like this:


{
“documents” : [ {
“vendor”: “ABC”,
“guid” : “1423700E-7600-4184-A795-BBD17A7969B1”,
“schema” : {
“location” : “http://host.com/org/schema/CA/101”,
“country code” : “CA”,
“version” : “101” }
“entity” : [ { “name” : “Afilias Canada Corp.” } ],
“date last checked” : “2014-01-01”
“date last updated” : “2014-01-01”,
“permit validation” : true,
“fields” : [

Read more
aparna_kondala's picture

Why custom services perform better than services module

I have created custom services module which gives json output and I created a resource using services hook_services_resources().

The custom ones gives response in 200ms where as services module gives in 4sec.

What is the reason? Does it take lot of time for formatting?authentication?access checks?

Steps to reproduce-
Custom way--
1)Install drupal
2)Create a content-type of complicated nested field collections
3)create a menu in custom module
4)output of that menu is drupal_json_output of the node data.

Services way---

Read more
kerry.t.johnson's picture

Cannot create node via Drupal 7 Services REST API

Services 7.x-3.7

I'm trying to POST a new node to my Drupal server (http://blah/rest/node), but the server is always returning an error with the string:

Not found: Could not find the controller

I have the node resource enabled for my endpoint. Within the node resource, the update option is enabled, which, according to the comments, is for both updating and creating nodes:

update: Update or create Node entities based on UUID

Read more
Fixdit's picture

Developer | Liveposter

Employment type: 
Full time
Employment type: 
Part time
Employment type: 
Contract
Telecommute: 
Not allowed

We're looking for an enthusiastic Drupal developer for an exciting role developing an award winning software platform utilised by clients including as Burberry, McDonalds, Costa, and Channel 4 to schedule their national and international digital poster campaigns from a single online location.

You must have a high competency in Drupal module development to apply, as well as strong skills in PHP, JavaScript and a knowledge of XML.

The vision is to make this platform a game changer in the Digital Out of Home advertising industry.

Read more
LudvigAldrin's picture

Custom XMLRPC module - How to retrieve information about user?

Hi all!
I have now search the internet for about day to try to solve my questions.

I have Drupal 7, Service 3, Services Basic Authentication and have developed my own custom XMLRPC module (hook_xmlrpc). In this module I want to first see that the current users is authenticated. Then I want to retrieve some specific information from the user to be combined in with other information.

I know that the rest of this is working for user.retrieve over xmlrpc with basic authentication works like a charm.

Read more
j. ayen green's picture

Getting restws to do more than respond

Having discovered that Services just can't handle parsing XML correctly (attributes), and that altering the parser list to call simplexml doesn't, in the end, seem to call it, I'm trying my luck with restws, given that it seems to be the direction to head in anyway.

I have configured the path in my module as such:

function mymodule_restws_resource_info() {
    return array(
        'mymodule_person' => array(
            'label' => t('Person'),
            'class' => 'PersonResourceController',
            'menu_path' => 'api/person',
        ),
Read more
yonghan's picture

Unable to login from phonegap application

Hi all,currently i'm using drupal 7.29,services 3.5,phonegap 3.1,jquery 1.9.1,jquery mobile 1.3.2 . I cannot login by using the following script from phonegap application but able to login from extenral php file.Thanks a lot.

login.js

dashboard.js

index.html

Read more
monaw's picture

Authentication and authorization with Services 3.5 CSRF token

I have a mobile application that use to work with Services 3.3 using REST and JSON. I upgraded to Services 3.5 and the authentication/authorization stopped working.

I've been struggling with this for a few weeks and would appreciate any help.

Here are the step our application use to perform which worked in Services 3.3:

<

ol>

  • Post to http://myserver.com/mobile/system/connect.json with username and password
  • Save return values (session_name and sessid) from previous call
  • Read more
    sarath.rajan's picture

    How to hook drupal's actual service resources

    Hi Friends,

    Am a newbie to service module and having a small doubt in it. I want to check an additional data while creating a node. I am using drupal's resource 'service_name/node' for creating node. But before creating I want to check the user's role also. I know that we can have our own resource using hook_service_resources and node_save(). But i want to know how to use drupal's defualt resource.

    Read more
    niccolox's picture

    Big Data Drupal: Cloudera Hadoop, MapReduce, Nutch, Solr, Aegir BOA, Drupal 7 ApacheSolr Views

    I am giving a talk at Badcamp on Big Data Drupal: Cloudera Hadoop, MapReduce, Nutch, Solr, Aegir BOA, Drupal 7 ApacheSolr Views

    http://2013.badcamp.net/sessions/big-data-drupal-cloudera-hadoop-mapredu...

    I am trying to gather some other experts i.e. Cloudera / Hadoop / MapReduce + HyperDrupal + Twig etc to come and handle the bigger and deeper questions

    https://drupal.org/node/2104503
    https://groups.google.com/a/cloudera.org/forum/#!topic/cdh-user/Uwuj1q7bWBY

    Read more
    markchitty's picture

    Service 3.0 and 'system/connect.json'

    I am currently trying to get the user authentication aspect of Service 3.0 working. I'm using the REST server, Services 3.5 and have run through the basic tests outlined here:

    https://drupal.org/node/1699354

    I've moved on to adding user authentication but am stuck at the first hurdle ... I've been working with the following tutorial (which is excellent btw):

    www.tylerfrankenstein.com/code/android-app-with-drupal-7-services-phoneg...

    And my main issue is that, when trying to interrogate the path with the following (using REST Console on Chrome):

    Read more
    fulat2k's picture

    Specifying HTTP method in action methods

    Hi folks,

    I've defined an action method which is exposed as a web service. However, all actions are called via the HTTP POST method.

    Is there a way to explicitly state which HTTP method a particular action supports?

    As an example, here's what I have defined:


    'validate' => array(
    'help' => 'Validates bonus code',
    'callback' => 'gs_bonus_validate_code',
    'access arguments' => array('access content'),
    'args' => array(
    array(
    'name' => 'code',
    'type' => 'string',

    Read more
    bjfany's picture

    canyin china(餐饮中国) app(ios, android) base on drupal

    进过两个月的开发,餐饮中国第二版在ios, android 市场上架了。
    餐饮中国是专注于移动互联网络,为全国餐饮专业人士提供以行业资讯、展会、招商、会议、赛事、教育等信息服务为基础的互动内容整合平台。在行业大型活动期间特别提供交通线路、会务安排、活动日程、嘉宾信息、投票调查等信息服务。

    app开发主要考虑了下面几点
    1)最好维护一套代码支持多个平台,ios, android, win phone
    2)使用开源产品,减少开发成本
    3)方便实现页面设计

    后端服务的开发主要考虑了下面几点
    1)方便管理员的维护
    2)使用开源架构,降低开发成本
    3)支持Restful API
    4)支持推送功能(push notification)

    最后确定了app使用jquery mobile进行开发,用phonegap进行封装,服务器使用drupal进行二次开发,app 与服务器的数据交互使用json.

    android 下载
    http://apk.hiapk.com/m/downloads?id=fany.ccas25&vcode=2

    ios 下载
    https://itunes.apple.com/cn/app/can-yin-zhong-guo/id617669119?mt=8

    Read more
    Fixdit's picture

    Develop Digital Poster Platform | The Cloud + Compass

    Employment type: 
    Contract
    Telecommute: 
    Not allowed

    We're looking for an enthusiastic Drupal developer for an exciting role developing an award winning platform used by clients such as McDonalds and Channel 4 to schedule their digital poster campaigns for sites including Piccadilly Circus, The London Underground and Westfield, etc.

    You must have a high competency in Drupal module development to apply, as well as strong skills in PHP, JavaScript and a knowledge of XML.

    Read more
    dorrisb's picture

    How to update node field from Actionscript3 using Services and AmfServer

    Hi Folks!

    I've set up the services 3 module and all the amfserver/zend dependencies, and can retrieve node information from D7 back into actionscript. However, I am soooo stuck on trying to update node fields back into Drupal. I've run and understand the tests provided by Rolf Vreijdenberger in his Drupal7AmfServer.as file. However, I see no example for doing the node update.

    The handlers have been set:
    proxy.setHandler("node", "retrieve", onResult, onStatus);
    proxy.setHandler("node", "update", onResult, onStatus);

    Read more
    Subscribe with RSS Syndicate content