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.

gateway69's picture

Services + JSON + Advanced Profile Kit

Im wondering if their is a way to get the advance profile kit profile data via services, I know user.get can get information about the user from the main core Drupal profile but any way to change or fix this to get to load all the data from APK profile based upon user login, email etc?

thoughts?

Read more
tinem's picture

Need your help deciding if Services is the module I should use for what I want, please?

98 different cities should login and make there own info about there toilets. I have only real content for Københavns kommune. Odense and Roskilde is just TEST data.

Table term_data

tid vid   name                    weight
6   2     Københavns kommune 0
7   2     Odense kommune  1
8   2     Roskilde kommune    2

Table content_type_copenhagen

Read more
whytewolf's picture

imageCreate Image in node.save

I'm having a bit of issues with attaching an image file to a story in services.

now i can get the file to attach, however the caption isn't seeming to take from services. if i edit the story and save with out touching anything, the title,alt and description fields in the image do save. however before that only the image is accessible.

here is the code for the $node['field_story_images'] field.


function imageLink($sid) {
global $db_reader, $xmlrpc;
$files = array();

Read more
gbernier's picture

New to Services Looking for little help

Hey All,

Update 1: I've tried using all the other servers I've got installed, AMFPHP and XMLRPC and I get nothing back as well. I did this just to see if maybe it was the json server. The message I'm getting from JSON is the same one I get when you go to /services/json from the browser.


Read more
Jb33's picture

user.login fails

hi!

i'm new to drupal services and i cannot get it work. i use drupal 6.16 and services 6.x-2.2.
my problem is that if i set services to "use keys" + "use session id" then i simply cannot
connect from my Java client program, i always get this message:
"org.apache.xmlrpc.client.XmlRpcHttpTransportException: HTTP server returned unexpected status: Forbidden"

if i untick "use keys", then the system.connect call succeeds, but the user.login never. it says
"org.apache.xmlrpc.XmlRpcException: Hibás felhasználói név vagy jelszó." (that means invalid usename or passord)

Read more
tharpa.osang's picture

Possible and appropriate with Services?

Hi all

A business partner and I are having a heated discussion regarding site architecture.... and the Services module

We want to have users login to a drupal site - "portal" - and then based on the results of a database lookup, be able to then browse other drupal sites - "community1" "community2" etc without having to login separately.

My partner thinks that the login can be done via the Services module. I disagree.

Read more
alexandre_fs's picture

Uploading a picture for User Profile Picture via Flash

Hello,

I am trying to upload photos for the user profile picture from a Flash client via AMFPHP server.
The idea is to make it possible to upload a picture when a user is registering (via Flash).

I've been searching a lot of related posts and I've came up with this solution based on this post: http://groups.drupal.org/node/22407
I've made some changes and here's my code:

Client-side (Flash), called after selecting a file:

private function fileLoaded(event:Event):void
{
trace("File Loaded. UID: " + uid); // uid is a global variable

Read more
jhl.verona's picture

Possible precautions and extensions for user services

This discussion has been transferred to the issue queue: http://drupal.org/node/806918 and http://drupal.org/node/807638

I am currently using the Services module for a project where an external application is responsible for creating, updating and deleting user accounts in a Drupal based intranet.

Most things are working just fine, however there are a few points which I have doubts about:

<

dl>

The user.get service
Read more
jhl.verona's picture

Inconsistencies in services_error and hook_server_error

This discussion has been transferred to the issue queue: http://drupal.org/node/806856

There seems to be a (surprising) inconsistency between the parameters for the function services_error and the various hook_server_error implementations, particularly xmlrpc_server_server_error.

Read more
artemtk's picture

Cannot Update Location Using NODE.SAVE. Really Need Help

Preface:
Even though I do have background in software development, I have very limited experience with web technologies. This is why I am using Drupal in the first place. Please be gentle as php and js are not my domain.

Project:

Read more
gdd's picture

API change in service definitions for Services 2.1 onward

As the result of a security issue in Services 2.0, a change was made to the way default access callbacks are handled in Services from 2.1 onwards. This can affect your module if you did not specify an '#access callback' key in your service definition. A summary of the change and the ways to address it can be found at

http://drupal.org/node/800590

My apologies for the inconvenience, these things happen sometimes. If you have any questions feel free to contact me or join #drupal-services and ask.

Read more
benthroop's picture

How to invoke hook_init when user.login is called?

This seems pretty simple but just wanted to ask someone knowledgeable before hacking something in... I'm using session_limit module to prevent logins from multiple locations for my site. When I use my Flex app to login, it calls user.login and a new session is created. However, session_limit is looking for hook_init to fire before it does its thing and destroys the old one. Hook_init gets called on page load... and being that I'm logging in from a Flex app, no such page load happens. So what should I do?

Read more
Hugo Wetterberg's picture

REST Server plist support

I just released a module that extends the REST server with support for both binary and xml based plists: http://drupal.org/project/rest_server_plist. This allows you to talk with services on the iPhone without any external dependencies on json parsers or having to interpret xml responses.

Read more
shushu's picture

Forum using Services ?

Hello,
A client of mine has a PHP-only site, and has relationships with a Drupal based site.
Now, they asked me to "semi integrate" the Drupal-based site's forums with their PHP site.

While I believe showing the discussions can be done using some XML feed from Drupal, they also asked me to enable creation of new content in the forums from their PHP site.

The first idea popped in my mind was to use Services, but now it seems that Services does not come with forum support "out of the box".

Is this a good direction ?
Is there any existing module that do what I want ?

Thanks,

Read more
Fixdit's picture

CCK only saving first character

I am inserting some data into nodes via a Flash application using SWX PHP (It's very like AMFPHP). All works well apart from the CCK fields. I'm having a massive problem trying to insert more than one character (the first character) into any CCK textfield. I believe this is because I haven't got the right formatting in my Flash AS2 code, but feel like I've tried every combination of Objects and Arrays to get it to work... to no avail :(

What should the format be? All the other normal node fields insert fine...

Read more
ebhakt's picture

How to simplify the management of 250+ nodes and 1000+ users

Hi,

I have written this tool : < Portal Manager :: Drupal Management Assembly >
which is to remotely manage a drupal based website
You can manage and edit user properties
You can manage and edit posts
you can sort posts on the bases of taxonomies and then manage and edit posts

The tool is written in C# WPF and needs .net framework 3.5 to be pre-installed
Please find the software here: LINK < http://ebhakt.com/content/portal-manager-drupal-management-assembly >

Please give your valuable feedback, its highly welcome...

Read more
mssjsg's picture

Invalid API key issue

Dear all,

I recently have "invalid APIkey" issue in "login" call. I tested the login call in services module setting page. And it keep response invalid apikey. I checked the domain and it should be correct. What is the problem?

Read more
cbovard's picture

Help with json server

Hello,
I have been looking for a tutorial to use JSON to get a listing of nodes from my drupal site.
Is there anything basic to start learning to use this?

Thanks in advance.

chris

Read more
alexandre_fs's picture

User Service - user.save not sending an email

Hello. I'm calling method User.Service to register new users from a Flash application.
I'm using Profile core module too to add some info about the user.

The registration process works fine (all data is saved, and user is created), but no e-mail is sent.

I thought I had understood the problem in this previous post: http://groups.drupal.org/node/60208
(I'm not using Content Profile anymore...)
Because for some reason that I could not understand the registration process started sending e-mails...

Read more
pol's picture

Android, XMLRPC and Drupal authentication

Hello,

I'm pretty new in the Android World and I just finished a website (http://drupal.org/node/777420).

I would like to make an android app out of it.

I've read alot and I'm using the 'Services' module with XMLRPC.

I'm struggling to do a user authentication and I don't understand the 7 arguments it needs.

Here is the Android Java code I'm using:

final XMLRPCMethod method1 = new XMLRPCMethod("user.login", new XMLRPCMethodCallback() {
public void callFinished(Object result) {

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