Services 2 Beta 1

Events happening in the community are now at Drupal community events on www.drupal.org.
gdd's picture

I am pleased to announce that the first beta of Services 2 (the 6.x-2.x branch) has been released! This is a huge step forward towards a stable release. Most of the people in this group have probably been using the dev releases from this branch for some time, but having a stable release will allow the Drupal community to use Services with a great deal more confidence.

The plan now is bugs! Report bugs! Let's get them fixed. In particular we could use some people testing the upgrade path from the current branch to 2.

The biggest outstanding issue right now is around the refactoring of the views.get service. If you have any interest in this then please weigh in. I'm really looking for the community to come to a consensus around it before I commit anything new. http://drupal.org/node/654644

We could also really use some doxygen in a lot of areas. Hugo Wetterberg recently contributed a huge documentation patch but there's plenty more to do. http://drupal.org/node/354242

If there are a lot of new issues I will probably roll one more beta before stable. If not then I may just go straight to a stable release.

Thanks to everyone for using and contributing to Services! I'm really excited to be this close.

Comments

How Do You Do Session Auth With File Service

cleophus's picture

Hello,

I am new to Drupal. I just downloaded and installed the 6-2 beta of Services Module, and I cannot find the setting to turn on Session Based Authentication. Was this removed, because in a lot of the discussion about Services in forums and blogs around the 'net people are alluding to such a setting. It was supposed to be at:

Administer->Site Building->Services->Settings

There, I was supposed to find a 'Use SessID' option.

Am I missing something, or has this been removed? Please help.

PS - I apologize if this is not the proper place for this question. I have been using Drupal for about 2 days now, so I am unfamiliar with community customs as yet.

First make sure that on you

gdd's picture

First make sure that on you modules page you have enabled Key Authentication under Services - Authentication.

Then go to admin/build/services/settings and choose the key authentication module from the pulldown menu. Then you should have the checkbox to Use Sess ID.

That Easy

cleophus's picture

Thanks.

I'll try not to bother you guys with too many dumb questions. But for each one I promise to put in a patch once I get up to speed. I hope that at least takes a little of the annoyance factor away.

I'm excited!!!

3emad's picture

Great job!

Is Key-based auth the only option?

jonathan_hunt's picture

I haven't enabled Key Authentication module on 6.x-2.0-beta1, but I have enabled Node Resource and Node Services. Using the services browser I get an Authentication Failed: 1 message just requesting a node_resource.index or node_resource.retrieve. Under the 6.x-1.x version of Services I had HTTP Auth working and managing permissions via Drupal roles. Is this possible under 6.x-2.0-beta1 and if so, how?

[edit: I solved this by installing Services OAuth and then disabling authentication; this falls back to normal Drupal permissions. /via http://goodold.se/blog/tech/integrate-iphone-app-drupal . It would be nice if Drupal perms was available out of the box for Services...]

Need help on services module

karthick62's picture

Hi I am newbie to drupal and i have been at services module for past two days.This is what i am exactly wanna do , I have two drupal website instances. I need one drupal instance to communicate with another drupal instance.I am advised to use services module for this. The main aim is to let one of the drupal instances to retrieve the taxonomy related terms from another drupal instance thro xmlrpc.

How should i proceed ??? do i need to write any PHP code related to it ??

Thanks

AS3 example

Synthmax's picture

I'm looking for a AS3 library that will work with services 2. does anyone have an ide where it can be found?

Synthmax

have you checked the service

bitrocker's picture

have you checked the service handbook examples over at: http://drupal.org/node/113697 ?

other resources are:

http://www.superfineshag.org/content/flash-amfphp-and-services

libraries/classes:

http://thirdavedesign.com/drupalsite/
http://www.dpdk.nl/opensource/drupalservice-as-a-bridge-between-flash-an...

hth: lars

p.s.: you may wanna use the 0.15 service module, as for me the current version did not work correctly when using it via amfphp.

have a site up running but cant send mail

Synthmax's picture

I used the sample code from the exelent book Flash with Drupal by Travis Tidwell to build a Flash/Drupal site
please look at http://officelab.dk/konference1 the problem is that there isn't any support for sendmail.

I Have build a test project for the super well documentet DrupalSite library from thirdavedesign and uploaded a sandbox site synthmax.dk/DrupalSite/. drop me an e-mail and I will send the project so you can have a look at it. max"at"synthmax.dk

I have also build the project at superfineshag.org/content/flash-amfphp-and-services and get the same error.

with the dpdk kit i get a "Invalid API key. althoug i can connect to amfphp with the same key form the http://officelab.dk/konference1 project.

I have downgraded to the service 1x release

Synthmax

Views services and ImageCache namespace

sylvain lecoy's picture

I think we should implement a "Service" tab for displaying cck fields.

Let me explain.

When you go to admin/content/node-type/[TYPE]/display, you can choose to display a namespace for Default, Tokens, RSS, (and because I added the Simplenews module) Simplenews.

To respect the drupal logic and empower the Views service, a namespace display should be choosen from the brand new Service tab, this will ensure that you get the right url by configuring the display through amf or rcp.
To respect the service logic on the other hand, the tab should be named "Node" as the view service only returns id of nodes for a specific view. Then the namespace choosen in this "Node" display is returned instead of the original file.

This will avoid using a custom ImageCache module, and avoid to do 2 calls of remote function to know the exact url of the imagecache profil.

I was hard coding the base url for each namespace before, and when renamed by Drupal, ie. image2_0.jpg, flash didn't find the right file.

What do you think of this solution for improving the Views Services ?

Regards

Sylvain Lecoy

AS3 + Drupal dev

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: