This may be part of the services module, but I'm not sure.

I have flash communicating with drupal, and was able to use node.save successfully. So I was able to successfully save my data every time. After I got that test working, I wanted to turn on and use the API key, but am having trouble getting it to work. Ever since this was turned on, I have not been able to get it to work.

Below is a sample of my FLASH code using a custom module:

--- BEGIN CODE EXAMPLE ---
myStory = new Object();
myStory.type = "starringyou";
myStory.name_first = fname_txt.text;
myStory.name_last = lname_txt.text;
myStory.city = city_txt.text;
myStory.email_address = email_txt.text;
myStory.body = story_txt.text;
if (optin_checkbox.selected == false) {myStory.optin_stat = 0} else {myStory.optin_stat = 1};
myStory.title = "Starring You Moment";
myStory.changed="";
myStory.format="1";
myStory.log="";
myStory.comment=2;
myStory.uid=0;
myStory.status=0;
myStory.date="";
myStory.promote=1;
myStory.form_id = "story_node_form";
myStory.op = "Submit";

myStory.key = "myKeyGoesHere";

var pc:PendingCall = node.save(myStory);
---END CODE EXAMPLE---

Am I using or naming this correct? myStory.key? or should it be myStory.authkey?

I've tried just about everything and am having trouble getting a handle on it. Any help would be greatly appreciated.

Comments

Fixdit’s picture

Did you have any luck with this? Was it As2 code you were using?

jjjames’s picture

I would really like to learn how to do this too using Flex 3. Any help would be great!
Thanks

jody lynn’s picture

Project: AMFPHP » Services
Component: Code » User interface

The API key is part of services module not amfphp.

marcingy’s picture

Status: Active » Fixed

This should now be covered in the documentation as Heyrocker provided a key and session based example.

marcingy’s picture

Status: Fixed » Closed (fixed)