Hi,

The process for moving
folder 856c1926-44ec-416d-815f-2d5ec9471fd8 (idSourceFolder)
into
folder 44e11301-4c79-4380-b362-bbf345dec83f (idDestinationFolder),
would be:

POST /feeds/folders/private/full/folder%3A{idDestinationFolder}
<?xml version='1.0' encoding='UTF-8'?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom";>
  <atom:id>http://docs.google.com/feeds/documents/private/full/folder
%3A{idSourceFolder}</atom:id>
  <atom:category scheme="http://schemas.google.com/g/2005#kind";
      term="http://schemas.google.com/docs/2007#document"; />
</atom:entry>

Note, you could also set the <atom:id> to the folder's folder feed:
http://docs.google.com/feeds/folders/private/full/folder%3A{idSourceFolder}

So in your code, you'll want to use:
movefolder.Id = new AtomId("http://docs.google.com/feeds/documents/
private/full/folder%3A" + idFolder);
and
myService.EntrySend(myfeeduri, movefolder, GDataRequestType.Insert);

Eric

On Dec 11, 12:58 am, CianoIT <[email protected]> wrote:
> Hi Guys,
> i write a small routine for moving a folder into a folder. The
> function is:
>
> public void SpostaCartella(string idFolder, string
> idDestinationFolder)
>                 {
>                         // create a feed uri
>                         string strUri = 
> "http://docs.google.com/feeds/folders/private/full/
> folder%3A" + idDestinationFolder;
>                         Uri myfeeduri = new Uri(strUri);
>
>                         // create a category with term and scheme
>                         AtomCategory category = new 
> AtomCategory("http://schemas.google.com/
> docs/2007#document", new AtomUri("http://schemas.google.com/g/
> 2005#kind"));
>
>                         // create a atom entry
>                         AtomEntry movefolder = new AtomEntry();
>                         movefolder.Id = new 
> AtomId("http://docs.google.com/feeds/documents/
> private/full/document%3A" + idFolder);
>                         movefolder.Categories.Add(category);
>
>                         // send command
>                         myService.EntrySend(myfeeduri, movefolder,
> GDataRequestType.Update);
>                 }
>
> where idFolder or idDestinationFolder is, for example,
> 993caffd-6f69-4bca-87c4-625a1c7269ca ...
> this function return a error:
> Google.GData.Client.GDataRequestException: Execution of request
> failed:http://docs.google.com/feeds/folders/private/full/folder:993caffd-6f6...
> ---> System.Net.WebException: Errore del server remoto: (400)
> Richiesta non valida.
>
> why? can we help me?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to