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.

GigabyteJack's picture

Using JQuery/HTML to save a file via REST server

Hi Everyone,

Thanks to the help of this group I have been able to get all the retrieval and listing functions working - and now I hope to do the reverse.

I read here that the REST server can accept a file posted to it (http://groups.drupal.org/node/90819#comment-285609), however I am struggling to understand how to make this work using JQuery. I've found the fileRecieve function in the RESTServer.inc but cannot determine how to post a file there or what variables I should send with it.

Read more
GigabyteJack's picture

Basic JQuery for call to node.index using REST server

Hi Everyone,

I am looking for a really simple example of how to make a call to the node index action in the latest REST server.

This is what I have so far - but I am getting a 406 (Not Acceptable) returned. I assume this is because I am not passing the correct arguments - so the better question might be - how do I find the correct arguments/parameters to send to a services call?

$.ajax({
type: "POST",
dataType: 'json',
url: "http://localhost/api/node.json",
data: 'sessid=' + $('#sessid').val(),
success: function (msg) {
console.log("node.list:");
console.log(msg);

Read more
bsenftner's picture

seeking discussions on RESTful API designs with a Services 3.0 REST Server

I am in the process of writing a Services 3.0 Module based RESTful API for a WebApp I am developing.

I have prior experience creating an XMLRPC API through Services, and Services itself handles all the nitty-gritty of coding up a RESTful interface... While googling to find information, I located lots of "hello world" style RESTful examples in oodles of different languages, and I found upteen definitions of REST and descriptions about that PHD dude that wrote it up formally... but I'm not finding anyplace where developers have discussed or are discussing RESTful architectures of anything other than a simple, single level data service.

Read more
itarato's picture

Services key authentication with Flash - how to store keys?

Hi,

I would like to hear about your opinion. I'm using Services 6.2, XML-RPC and key authentication. I'm calling it from an embedded Flash object. The communication works perfectly. My problem is with the api key and where to store it.
I need the api key in the Flash object when sending the XML-RPC request. I shouldn't hardcode the key in Actionscript, it should stay customizable. I think it's also not a good practice (moreover is a security hole) to provide the key as a flashvar.

Read more
vkareh's picture

DrupalCon session up for votes: Forms via web services

For those of you going to DrupalCon Chicago, session voting is currently going on (until December 24th - 9am).

Some of you already know about my proposed session. If you're interested, here is the link: http://chicago2011.drupal.org/sessions/forms-web-services-deploying-drup...

See you at the next Ann Arbor users group (and DrupalCon, of course!)

Read more
hamberger's picture

Session with uid="0" left behind when calling user.login

Hi everyone,

I'm currently writing an iPhone Application to sign in to Drupal with Services. When I login, I get an XML object with all the correct information, but when I try to make any subsequent actions e.g. user.logout or user.get it says that the user is not logged in. Although I'm passing on the correct Sesssion ID. After looking into the "sessions" table in the database I saw that the session ID is created but instead of the uid of the signed-in user there is the value "0"

Read more
gdd's picture

Services 3 beta released

I have just rolled the first beta release of Services 3! For those who haven't been following, this is a complete rewrite of Services from the ground up. This rewrite was started by Hugo Wetterberg, then I took it from there to alpha, and Kyle Browning has recently been doing a ton of work in the queue to get us into beta. Thanks also to John Storey who has contributed our first set of Simpletests! All this help has been greatly appreciated as I have been planning an international move for the last several months.

Read more
christothetopher's picture

Need help with custom service method

I love the services module and everything I've been able to do with it so far. That being said, I can't do everything I want to achieve with the module as-is. So, I decided to extend the services module and therein lies the problem!

I created a new directory inside the services subfolder, userprofile_service. I've emulated everything I've seen inside the other folders (inc, info and module files) and wrote my custom code to interact with drupal.

Read more
rolf vreijdenberger's picture

download of presentation and code from a session on integrating flash and drupal at the adobe usergroup xl event

Hi guys,

yesterday I spoke on the dutch adobe usergroup XL event, an annual event in the netherlands for the adobe platform, on using drupal as a content management system for your flash, flex and air applications with the help of our opensource package. I've made all the presentation files available online.

Read more
toemaz's picture

Looking for DrupalCon Chicago co-speaker(s) on Services & API's

I'm looking for a co-speaker to submit a DrupalCon Chicago session on Services and Open API's. I want to take up the Open API part with three main topics:
* How to build an Open API with Services: modules used, write your own resource, authentication
* How to monetize your Open API
* How to promote your Open API
I'll be using a in production example which is currently in being tested and documented (more later).

I'm looking forward to find a co-speaker!

More info:

Read more
nickvidal's picture

Drupal 7 and Sencha Touch

I've created a demo to show how Drupal and Sencha Touch can work together. The demo is called "Tea Sencha Network" and it displays information from Sencha's official blog.

Please access:

<

ul>

  • the Mobile UI (http://teasencha.net), built on top of Sencha Touch,
  • the Green TEAm (http://green.teasencha.net), built on top of Drupal 7,
  • Read more
    kdineshbe's picture

    Not well formated error in node.save

    I am running two drupal sites ( 2 databases), one for data entry and another as portal.
    Now the problem is whenever a content is published from data entry site, the content has to be copied to portal site.

    I tried xmlrpc and servies module. i am getting not well formed error. also i read if file fileds are used, it is complex to port.

    Need Guidance ...

    Thanks

    Read more
    gateway69's picture

    The mystery of node.save and how to save more of a complext node with cck fields

    Over the last few days I have been trying to figure out how to properly use the services node.save function to save more than just a simple content type such as story which has just a title and a body. This I can do w/o any issues. The issues that im trying to figure out is when you have a content type lets just say only these fields right now

    content type photo
    * title
    * body
    * field_my_photo -- cck imagefield

    --- fid i already had from file.save

    Read more
    dbt102's picture

    Services and BACnet Devices

    A BACnet device is any device, real or virtual, that supports digital communication using the BACnet protocol (see www.bacnet.org)

    BIG-D has formed to develop integration of BACnet devices with Drupal, and http://groups.drupal.org/node/100434 begins discussion to that end. Are there any 'Service Ninjas' with BACnet experience that can help us out? And/or BACneteers that can help point in the right direction?

    BACnet systems play an important role in systems relevant to Energy Management, Renewable Energy, Smart Grid applications and energy efficiency in buildings.

    Read more
    masu0105's picture

    Dash player Invalid API key

    Hi! I have recently started looking at the Dash player module for Drupal. It looks like a great player and i would really like to use it on a site i am building for a client. I have looked at the video tutorials on how to set it up but i can't get it to work. The dash player is loading but no video is playing. If i look at the error log i can se that i get a "invalid api key" error when the dash player tries to connect to Drupal services.

    Read more
    monti's picture

    interchange data with flex/flash

    we are a drupal developer and a flex/flash developer working ad-hoc on a mutual project, where data needs to be sent back and forth between drupal and a flash application.

    requirements :

    <

    ul>

  • the flash application lets the user to visually create a complex pattern, that is stored internally in a flex structure.
  • users may save their creations along with some information (name, email, private/public, etc.)
  • users may retrieve their own creations to a sort-of gallery (a player copy of the above application), select one and keep on editing it.
  • Read more
    lelizondo's picture

    Transform a Webform submission into a Ticket Node in another site using Services

    I needed to create a Webform to act as a Frontend to receive feedback in one site, but I needed to send this submissions to another site. This is what I did, hope you find it interesting.

    First, I created two sites, one is the Frontend and another the Backend. In the backend, I have a Content Type "Ticket" with a few fields mapped to the webform fields in my frontend. I also have Subscriptions and Taxonomy Access Control.

    Read more
    gdd's picture

    Drupal Dojo Session: Deploy module and the future of staging and deployment in Drupal

    Start: 
    2010-10-05 12:30 - 13:30 America/New_York
    Organizers: 
    Event type: 
    Online meeting (eg. IRC meeting)

    [NOTE - This session has been rescheduled to Tuesday, October 5; we apologize for the short notice.]

    In the last two Drupalcon keynotes, Dries has stated that content staging and deployment is one of the highest priorities to be solved in Drupal 8. This session will discuss some approaches to this problem. The first part of the session will talk about the Deploy module complete with a live demo. After that I will discuss some possible approaches to solving this problem in Drupal 8 and take questions.

    Read more
    sneh's picture

    How does Services module work with Multi-platform use?

    We have two web applications in Java and one community in Drupal.
    We have developed one Web App which centrally provides user interface to all three.
    Web app is in Java. So it’s easily consuming web services of two java applications.
    Now question about Drupal; How to integrate Drupal with Web app?

    Does Drupal Services module provide following services?

    -User can create content in Drupal community using Web app.
    -User can share contents in Community Groups as well as email node url to friends using Web app.
    -User can upload content in Drupal using Web app.

    Read more
    effulgentsia's picture

    PHP-free front-ends to any Drupal page for D7 services

    Hi, I'm not sure if this has already been discussed in this group, but to the extent that D7 services is underway, I wanted to get this discussion started if it hasn't been already. If it has been, please redirect me to the appropriate thread.

    Read more
    Subscribe with RSS Syndicate content