scottro
03-30-2011, 03:44 PM
We are using the DReAM API to auto-generate content from an XML document. Our code works when we upload to the /Drafts page or the top of the tree. But we can't get it to work with "/User:" pages.
What is the proper way to specify pages in the /User: space?
The documenation is not elaborate:
http://developer.mindtouch.com/en/ref/MindTouch_API/POST%3apages%2f%2f%7Bpageid%7D%2f%2fcontents
We tried using both "/User:Auser" and "User:Auser" by replacing MindTouchSubdirectoryPath in the code snippet below, but were unsuccessful.
mindTouchPlug.At("pages", "=" + MindTouchSubdirectoryPath + "%252f" + xmlDoc.ObjectName, "contents")
The API is invoked by Auser - authenticated with that user's id/password.
Thanks!
-Scott
What is the proper way to specify pages in the /User: space?
The documenation is not elaborate:
http://developer.mindtouch.com/en/ref/MindTouch_API/POST%3apages%2f%2f%7Bpageid%7D%2f%2fcontents
We tried using both "/User:Auser" and "User:Auser" by replacing MindTouchSubdirectoryPath in the code snippet below, but were unsuccessful.
mindTouchPlug.At("pages", "=" + MindTouchSubdirectoryPath + "%252f" + xmlDoc.ObjectName, "contents")
The API is invoked by Auser - authenticated with that user's id/password.
Thanks!
-Scott