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.

eimhee's picture

PathAuto bug

I find that the service 3.0 is not Compatible with pathauto module
when I used webservice to retrieve the taxonomy information, but it doesn't contains pathAuto information
http://www.1ju.org/rest/taxonomy/19

<?xml version="1.0" encoding="utf-8"?>

Read more
freescholar's picture

Developer | FreeSchoolUniversity

Employment type: 
Part time
Telecommute: 
Allowed

We are creating an online educational site for FreeSchoolUniversity.org which is part of OccupyBoston.
Using Open Scholar, we are making a site that will host several sites for classes and teachers of many subjects.
It will be an International site geared towards teaching, mentoring and sharing knowledge.

I work with Drupal on a regular basis, but have not worked with the Open Scholar version.
If there are any Drupal developers out there that have Open Scholar experience, there are a few things we could use help with.

Internationalization
Media
VOIP
Advanced calendaring
SMS

Read more
Macs's picture

How to get node content of more than one node with a single call?

Dear service group members, i am just starting with the drupal service module, hence my question might seem a bit stupid to some of you. However, I (re)searched the web and the group discussions but I wasn't able to find a solution that helped me further. I am using the REST server to retrieve a json with node information from services 6.x-3.0

I am fiddling around with the following problem:
When I do "http://mysite.com/api/node/11" i am getting a json with information that is on that node specific node such as the 'body' and in my case some location information, image and so forth

Read more
Beanjammin's picture

Moving from Services 2.4 API Key auth to Services 3.x - Similar authentication options?

I have a site that is using Services 2.4 with API key authentication on D6 and am looking to move to Services 3.x. I need to be able to restrict access to the web service, but would also like to avoid having a local user for each remote client. Is there a way to accomplish this in 3.x?

Read more
jfsullivan's picture

Correct Format/Headers for Posting to the File Service?

First off let me say I really like the 3.0 version of the services. But I've come to a stumbling block on posting files to the file service that none of the examples have so far been able to answer for me. I'm writing a basic PHP uploader that will then take the submitted image and post it to the file service. This simplified client is as follows:

<?php
$postData = array(
'file' => array(
'file' => base64_encode(file_get_contents($_FILES["Image"]["tmp_name"])),
'filename' => $fileName,
'filesize' => filesize($_FILES["Image"]["tmp_name"]),
'timestamp' => time()
));

Read more
ziobudda's picture

User not logged in, but user.login works

Hi all, I have a problem that I can not understand. I'm using services 3.x with a D6 and I have this code:

$.post("http://mydomain.ext/pr1/system/connect", function(data) {

$.post("http://mydomain.ext/pr1/user/login", data.session_name+"="+sessid+"&username=foo&password=bar", function(data2) {
//alert(data2.user.uid);
sessid = data2.sessid;
session_name = data2.session_name;
$.cookie('PHPSESSIONID',data2.session_name);

Read more
kylebrowning's picture

Services 3.0 has been released

Just wanted to let everyone know here that Services 3.0 has been released.

Go get em boys(and girls)

Read more
kziv's picture

Need advice on API rewrite + Services (2? 3?)

We currently have a hacky API sitting on top of the Services 2 module. We're debating a rewrite of the API because the code is crufty and I'm evaluating whether Services is still the right tool for the job and if so, which version. Below are the features we need in our API. I'm not clear on what Services handles and what we would have to custom code ourselves. Given

that we don't care about things like XML-RPC and true REST, is it worth using this module? Can anyone give me some additional thoughts on this?

Must have:

Read more
zezaz's picture

Services 3.x on D6: taxonomy and REST

Hi,

I am giving a try at Services using Drupal 6.22 (Pressflow).

I want to manage taxonomies, nodes and nodequeues through Services. I installed Services 6.x-3.0-rc4, along with its dependencies (ctools, autoload, inputstream), and i can't manage to have it working.

Read more
bsenftner's picture

Services 3.0 training for both D6 & D7 in downtown Los Angeles Nov 3, 4 & 5

Hey all,

I'm hosting a 2-3 day training class on setting up & writing one's own RESTful WebAPI via Services 3.0. Full details can be found here:
http://groups.drupal.org/node/177079

Read more
vstar-gdo's picture

Is it possible to retrieve html from the REST server?

Hi,

I am using Drupal 6 and Services 6.x-3.0-rc3. I have one non-drupal website that calls my drupal site to get an index of some blog data from a REST server. I wrote a custom 'blog' resource to return the appropriate data and I have this working if the non-drupal site asks for xml or json... it returns the correct data in the correct format.

Read more
ballesterosdm's picture

user_access disconnect the user

Hi.

I am implementing a REST API using services module in a drupal module that I am developping.

In the services_resource hook I have indicated "user_access" as access_callback function. The rest service is working properly, but I have realize that every time that a logged user access to it, the user is disconnected.

Any idea?

Thanks in advance. Regards.

Read more
kscottj's picture

Calling Services using JavaScript

I been working a PhoneGap (Android, iPhone) based mobile application. PhoneGap uses normal JavaScript so here a list of javascript libraries and where to get them you will need for the XMLRPC interface. I just hope this helps someone else it took me days to track all of this down and get it working.

  • XMLRPC (http://mimic-xmlrpc.sourceforge.net/)
  • sha HMAC (http://point-at-infinity.org/jssha256/ needed if you want to use API keys)

    Here some sample code for calling drupal with the XMLRPC interface:

        drupalSession=new drupalSessionObj();
  • Read more
    kscottj's picture

    Services posting a forum topic with code

    I have written a javascript application that will post comments to any node in my local drupal install with and API key. The goal is to be able to use an android/iPhone mobile PhoneGap applicaiton to post content to a Drupal server.

    My question is can I add topics to a Forum using the services XMLRPC interface?

    I can add a node of type "forum" however that never show up in the forum.

    I currently using services v2 on Drupal v6.2.2 server.

    Here a simple JavaScript code snippet:

    function postForumTopic(intNode,strText){
        var method = "node.save";
    Read more
    ziodave's picture

    Services resource for Product types (from Drupal Commerce)

    Dears,

    As I need to programmatically create Products in Drupal 7.x and Drupal Commerce, I'm writing a small file based on the skeleton of resources/node_resource.inc.

    Right now I'm just able to create products and receive the ID of the created product (which I'm looking to use as a reference for the node creation).

    Is this of some interest for this group, should I share this small file - full with errors :-))

    Thanks,
    David

    Read more
    s0iZi's picture

    Drupal 6.x Services 3.X -- Simple REST Server & Jquery + AJAX

    Hello everyone,

    I'm frustrated because what I want to achieve is supposed to be simple stupid. I'm simply trying to access product information from an outside non drupal site.

    I have installed everything (services, inputstream, autoload, ctools)
    I configured the REST server as follows :
    Response formatters : json
    Request parsing : application/json & application/x-www-form-urlencoded
    gave a path to endpoint and no authentification
    ticked all ressources.

    Read more
    pelach's picture

    images with soap

    hello all,

    I am trying to get a node out of "http://source.com" to "http://destination.com" via services using the node_soap_retrieve function and the soap_server module.

    Both sites are running drupal 6.22.

    Now say I want to create a node which has an image field in "http://destination.com" from "http://source.com".

    how do I upload that image in "http://destination.com"?

    I mean the node that want to create should have an image but how do I pass this binary info?

    I hope I described my problem well :)

    thank you.

    Read more
    jaako's picture

    Drupal 7.x & Services 3.x -- can't get off the ground!

    Hey guys,

    I can't seem to get off the ground with D7 & Services 3.
    I've gone through the documentation, handbook, groups, & google but I just can't figure this out.

    I enabled services & rest server, created an end-point "api" with no authentication, enabled all resources and saved.
    But I can't get a single services URL to work in curl/firefox poster/chrome/etc. Neither Get/Post. Everything I've tried brings me to Drupal's 404 page.
    I have all relevant permissions enabled, clean URLs is on, I have CTools and InputStream installed...

    Read more
    ah0's picture

    Idea: Push Engine - Integration with existing Push technologies to streamline Realtime Data Push into Drupal

    Idea: Push Engine - Integration with existing Push technologies to streamline Realtime Data Push into Drupal
    Brief: I've been digging though all existing modules but non seem to offer anything that can push the data from external sources in realtime.
    Advantage: integration of drupal with any of the existing push frameworks can really take drupal out to a brand new horizon.

    Read more
    stilllife00's picture

    How to send an Image to a Drupal Services 3 endpoint using json

    Hi all!
    I'm having a trouble during a simple Android application development. I'm trying to add a simple News on my Drupal site from the Android application. I created a new content type called "News" with 2 strings (title and body) and a Image field. I sent to my site a title and a body and it works correctly using JSONObject class.

    Read more
    Subscribe with RSS Syndicate content