wiki.api(source : uri) : xml
Get an XML document from the API using the current user's credentials.
9.02 or later.
| Name | Type | Description |
| source | uri | XML source uri |
The document in xml format
| Output | ||
| <pages.popular count="1" href="http://developer.mindtouch.com/@api/deki/pages/popular"> <page id="31084" revision="36" href="http://developer.mindtouch.com/@api/deki/pages/31084?redirects=0"> <uri.ui>http://developer.mindtouch.com/en</uri.ui> <title>MindTouch Community Portal</title> <path type="custom">en</path> <namespace>main</namespace> <language> </language> <metrics> <metric.views>19388</metric.views> </metrics> </page> </pages.popular> |
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by
wiki.api(uri.build(page.api,"comments",{limit:15,sortby:"-date.posted",depth:"infinity"}))
will return this error when no comments are found:
/content/body/pre, function 'wiki.api' failed (click for details)
MindTouch.Deki.Script.DekiScriptInvokeException: function 'wiki.api' failed ---> System.Exception: (unable to fetch text document from uri [status: 500 (InternalError)])
at MindTouch.Deki.DekiWikiService.WikiApi (MindTouch.Dream.XUri source) [0x00000]
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
--- End of inner exception stack trace ---
at MindTouch.Deki.Script.DekiScriptRuntime+<Invoke>d__0.MoveNext () [0x00000]
at MindTouch.Dream.Coroutine.Iterate_Helper (IEnumerator`1 coroutine, MindTouch.Dream.TaskBehavior behavior) [0x00000]
at System.VoidClosure`2[System.Collections.Generic.IEnumerator`1[MindTouch.Dream.IYield],MindTouch.Dream.TaskBehavior].Closure () [0x00000]
at MindTouch.Dream.Task.Execute (System.VoidHandler handler, MindTouch.Dream.TaskBehavior behavior) [0x00000]
Bug filed: http://bugs.developer.mindtouch.com/view.php?id=6755 edited 18:51, 2 Jul 2009
/content/body/pre, function 'wiki.api' failed (click for details)MindTouch.Deki.Script.DekiScriptInvokeException: function 'wiki.api' failed Server stack trace: at MindTouch.Deki.Script.DekiScriptRuntime+<Invoke>d__0.MoveNext () [0x00000] at MindTouch.Dream.Coroutine.Iterate (IEnumerator`1 coroutine, MindTouch.Tasking.TaskEnv env, System.Action`1 completion) [0x00000] Exception rethrown at [0]: ---> System.Exception: (unable to fetch text document from uri [status: 401 (Unauthorized)]