Hi,

I have been struggling with setting up security and apikeys for the services module. I have a much better handle on it now, and I'd like to propose taking the small outline on the project download page (http://drupal.org/project/services, titled Release 6-x.0.11+ and Release 5-x.0.92) and expanding it into a full page for the documentation section (http://drupal.org/node/109782). I am willing to help with this, but as a newbie in Drupal I want to make sure I am going through the correct procedures and not doing anything counterproductive for the group. Any advice welcome.

Thanks for the hard work on this great module!

Kurt

Comments

marcingy’s picture

Kurt

That would be really helpful. Your best bet is to drop Scott Nelson (snelson) a line via his contact form and he will co-ordinate with you re the best way to get the documentation updated.

Marc

scafmac’s picture

Until that documentation is created, this might help anyone trying to figure out how to create the correct hash - #318247: API Key broken for services/browse testing (Also Hash creation details for api key in php)

swellbow’s picture

Thanks for the tip, Marc! I'll drop him a line.

And thank you scafmac for the hash help!

Kurt

xjs’s picture

Anyone has luck with other languages such as C# and Java?
I follow http://drupal.org/node/308629 and created a solution in VC# express 2008, but it doesn't work. it seems it fails at system.connect, and the error is "response contains struct value with missing non-optional member: sessionid [response : struct mapped to type Drupal]"

I also created a Java project following that example, but got "Exception in thread "main" redstone.xmlrpc.XmlRpcFault: Invalid API key."
Btw, I was able to run system.connect etc. It fails at "user.login"

Thanks!

anAgent’s picture

If you go to the "Services" -> "Drupal.Connect" and click the "call method" button, you will see the available object properties. In the example http://drupal.org/node/308629, the "Drupal" struct should at least be:
public struct Drupal
{
public string sessid;
public DrupalUser user;
}

I'm in in working with C# VS 2008

gdd’s picture

Status: Active » Needs work

I have written a handbook page outlining how to use the API keys here:

http://drupal.org/node/394224

I would love it if someone could look this over and verify the code works. Once that is done I can go through and close all the issues around the API keys pointing them to the docs.

gdd’s picture

Marcingy took a look through this and confirmed it as good so closing this out.

gdd’s picture

Status: Needs work » Closed (fixed)

Suppose I should actually close it