Closed (fixed)
Project:
Services
Version:
5.x-0.92
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2008 at 17:44 UTC
Updated:
10 Mar 2009 at 14:41 UTC
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
Comment #1
marcingy commentedKurt
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
Comment #2
scafmac commentedUntil 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)
Comment #3
swellbow commentedThanks for the tip, Marc! I'll drop him a line.
And thank you scafmac for the hash help!
Kurt
Comment #4
xjs commentedAnyone 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!
Comment #5
anAgent commentedIf 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
Comment #6
gddI 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.
Comment #7
gddMarcingy took a look through this and confirmed it as good so closing this out.
Comment #8
gddSuppose I should actually close it