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
Comment #1
Fixdit commentedDid you have any luck with this? Was it As2 code you were using?
Comment #2
jjjames commentedI would really like to learn how to do this too using Flex 3. Any help would be great!
Thanks
Comment #3
jody lynnThe API key is part of services module not amfphp.
Comment #4
marcingy commentedThis should now be covered in the documentation as Heyrocker provided a key and session based example.
Comment #5
marcingy commented