services

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
cjdavis's picture

CINDUG: Acquia Webinar on using Flash with Drupal services module

Several members have expressed an interest in building Flash apps that can communicate with a Drupal site. There is an Acquia sponsored webinar coming up on just this topic Thursday 7/23/2009:

http://acquia.com/community/resources/webinars/build-dynamic-community-s...

Read more
ilovedrupal-gdo's picture

Drupal Authorization

Hello. I am trying to get services using authorization to work but I am running into an issue. I have services 6.x-1.x-dev installed, key authentication, json server and xmlrpc server. I have the node,search,system,user and views service turned on and I am running the latest stable drupal 6. I am trying to use the python script below to connect and return a node from services (I have also tried with a view and also using php but run into similar problems). If I go to site building -> services -> settings and remove the use keys and use sessid (and don't send the auth.

Read more
bstoppel's picture

views.get returns an empty array

My Setup
Drupal 6.10
Services 6.x-1.x-dev
AMFPHP 6.x-1.0-beta1
XMLRPC Server 6.x-1.x-dev
Views Service 6.x-1.x-dev
Views 6.x-2.5

The problem
I set up a view to pull a certain content type out with relevant info. It works great in Views. All of the information is visible when I preview it inside of views. When I try views.get within Services, the result is an empty array. There aren't any error messages. Just an empty array - Array().

What am I doing wrong?

Read more
mrconnerton's picture

Flex: Save binary bytearray data from actionscript 3 to drupal with amfphp

I have been looking for a way to upload a file in flex and save the bytearray directly to drupal via amf. This was written on Drupal 5 however it can easily be added to Drupal 6. Just note there is already a file_services module in D6 and not d5. Here's what I have come up with that works great:

Read more
nhchau's picture

How to fix "XML-RPC server accepts POST requests only." error?

I tried Services and it methods work, except XML-RPC. Testing XML-RPC with Drupal 6.10 (and 5.16) by click into http://mysite.com/services/xmlrpc I got the following message: "XML-RPC server accepts POST requests only."
How to fix this?

Read more
thompcha's picture

PHP Script for XML-RPC calls from outside Drupal

Here is a set of PHP functions I put together for calling Drupal's core XML-RPC methods without using the Services API:


<?php
function assemble_request($method, $args = array(), $dump_request = FALSE){
$request = xmlrpc_encode_request($method,$args);
$context = stream_context_create(array('http' => array(
'method' => "POST",
'header' => "Content-Type: text/xml",
'content' => $request
)));
if($dump_request){
echo '

<

pre>';
echo htmlentities($request);

Read more
carlosg2's picture

NEW Imgecache service : Triggering the creation of imagecache derivatives programmatically

Hello all,

This service force the creation of an image derivative with imagecache. Just pass the relative url of the image and the name of image cache preset.

The title and code is from Florian Lorétan. Read more from his blog:
http://happypixels.net/blog/triggering-creation-imagecache-derivatives-p...

It was so easy to make a service.
But what im looking for is to create presets on the fly, something like:

Scale (width=160, height=null , upscale: false)
Crop (width= 155, height= 160, xoffset= center, yoffset= center)

Read more
jacopo3001's picture

Flex: Image snapshot and File save service

i broke my head on this for few days (and broke anyone on this group's b##ls i guess..)
i got to a solution now and want to share:

i am on drupal 6.10, Services, amfphp.
I have a content type called PHOTOS with 1 image_field.
I need to save the image to server, store it into drupal, then finally create/edit the node to link the image file to it.

My starting point is very similar with keystr0k's @ http://groups.drupal.org/node/20549, with the difference that he's using DrupalSite.as class.
I tried keystr0k's method and it didnt work for me, and it was too complex to debug.

Read more
z3cka's picture

Services API Documentation

node.save

I had a very tough time finding what arguments were required by node.save... I finally guessed that a new node needed a "created" timestamp argument. Where should I post the following?

For new node creation be sure to set the creation time of the node:

var my_date:Date = new Date();
nodeObject.created = my_date.getTime();

and for editing existing nodes, be sure to set the changed time of the node:
var my_date:Date = new Date();
nodeObject.changed = my_date.getTime()
Read more
mikehomee's picture

Services fo Workflow

Hi!
I'm just a newbie in drupal, especially in services.
Although i already used this powerful services_module several times using java application.
I want to know if there's a way to view the data of workflow_module in sevices?

Thanks in advance!!!

Read more
Subscribe with RSS Syndicate content