node.save

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
b-d's picture

Preview Edits NO Captcha & Vocabularies

1. Is there a way to DEACTIVATE the Captcha Function on the Preview post.
(In the GROUP.drupal.org creation of a group)

I'm NOT Saving my edited post yet. so i don't think i need to be checked if i'm a bot. At least I'm making Previews 1st before making a save. So that should relieve the Junk Data storage in the History and Server Functions.

2. While your at it; it would be nice to have the in Create etc... Be a Default HIDDEN. like the "Input format" & "File attachments" a lot of junk TAGS are being created in the [ Sitewide tags: ].

Read more
peteralex's picture

JSON server - problem att få "node.save" att fungera med cck-fält

Hej!

Testar att använda Drupal som backend server där jag sparar information via jQuery Ajax anrop mot JSON servern.
Jag har problem att få 'node.save' att fungera med cck fält och undrar om någon av er som lyckats bättre.
Följande node objekt fungerar:

 {"type":"mytype","title":"My Title","uid":1,"name":"admin"}

Men försöker jag lägga till ett cck fält så får jag problem. Exempelvis följande node objekt lyckas ej sparas:

{"type":"mytype","title":"My Title","uid":1,"name":"admin","field_author":"[{\"value\":\"Sigge\"}]" }

eller:

Read more
gateway69's picture

The mystery of node.save and how to save more of a complext node with cck fields

Over the last few days I have been trying to figure out how to properly use the services node.save function to save more than just a simple content type such as story which has just a title and a body. This I can do w/o any issues. The issues that im trying to figure out is when you have a content type lets just say only these fields right now

content type photo
* title
* body
* field_my_photo -- cck imagefield

--- fid i already had from file.save

Read more
roo's picture

correct parameters for file.save and node.save to create a new node with a cck imagefield?

OK, have got file.save working with jsonrpc post content like:

method="file.save"&params={
"file":{
"file":"BASE64STUFF",
"uid":"5",
"timestamp":"1269406525",
"filename":"test.jpg",
"filepath":"sites/default/files/test.jpg"
},
"sessid":"3qbg2lv0bpjlfve3vim0b7t627"
}

and a subsequent node.save with jsonrpc post content like:

{
"field_image": [ {"0": {"fid":"25"} } ],
"uid":"5",
"title":"test node",
"type":"cardobject"
}

Read more
roo's picture

iPhone + JSON + services + drupal - problems with node.save and file.save

I have two issues I am hoping someone can assist with.

Running Drupal 6.16, services 6.x-2.0, json server 6.x-2.0-alpha1.

Have API disabled, sessid enabled.

Can connect, login and retrieve/parse views and nodes with node.get and views.get.

but have no luck with file.save and node.save.

example file.save = method="node.save"&sessid="aeufrgi2kk1tm1ra8rfacg9et5"&node="{"uid":"5","title":"newcontent","type":"mytype","name":"testuser","body":""}"

the user can create content via the web site with these values, but via the services call they get:

{
"#error" = 1;

Read more
pdumais42's picture

Python code using XML-RPC to create a node and upload/attach a file.

I've searched the web looking for something more than a "create a node" example for Drupal Services. There are some good examples for Flash/Flex and some bits and pieces in Python or PHP but nothing that helps me to figure out what I am doing wrong.

Since my client is planning to develop a cross platform application that interacts with their Drupal site, I thought I would create a sample app in Python - just to show the Flash, iPhone, Droid, Blackberry developers how the Drupal Services API works.

Read more
kkretsch's picture

java node.save example anywhere?

I have a java client up and running using org.apache.xmlrpc.client.XmlRpcClient as client lib and a current drupal 6 with services via xmlrpc enabled. I already can connect, login, logout and even loading a node works.
Authentication is done via sessionID, API-key is disabled.

Now for the problem: i can't get the node.save to work. I give the function two parameters, the session and some structure. What java type equivalent is there expected?

config.setEnabledForExtensions(true);
...
HashMap<String,Object> hmSave = new HashMap<String,Object>();
hmSave.put("type", "pruefsumme");
hmSave.put("title", ivFileList.get(i));
hmSave.put("field_crc32", ivCheckSumListCRC32.get(i));
params = new Object[] {
sessid,
hmSave
};
Object oSave = client.execute(WS_ACTION_SAVE, params);
System.out.println(WS_ACTION_SAVE + "\t" + oSave);
Read more
timosea's picture

node save using as2 and swx

Ello,

I've just posted some swx as2 code http://drupal.org/node/289428#comment-1007620 as i'm having some issues with saving nodes via swx. I thought post a link here too as i'm still kind of green with services in drupal so my issue might not be with the swx module and just my logic in how the node save service works.

Read more
Subscribe with RSS Syndicate content