<docbook><section><title>VirtuosoOdsControllersWikiEx8</title><bridgehead class="http://www.w3.org/1999/xhtml:h2">Example Usage of ODS Wiki Controller for Create New Upstream</bridgehead>
<para> Note: The Consumer key for a given ODS Wiki instance can be obtained following <ulink url="VirtOAuthControllers">these steps</ulink>.</para>
<orderedlist spacing="compact"><listitem>See details how to obtain Wiki Upstream URL <ulink url="ODSWikiAtomUpstreaming">here</ulink>.
</listitem>
<listitem>At <ulink url="http://cname/ods/oauth_test.vsp">http://cname/ods/oauth_test.vsp</ulink> enter: <orderedlist spacing="compact"><listitem>Server: <ulink url="http://cname/ods/api/">http://cname/ods/api/</ulink> </listitem>
<listitem>Consumer Key: 1444fd337e720f2eceb2bf759c57c1648e749110 </listitem>
<listitem>API method: wiki.upstream.new </listitem>
<listitem>API parameters: cluster=demoWiki&amp;name=<ulink url="MyUpstream">MyUpstream</ulink>&amp;url=<ulink url="http://demo.openlinksw.com/dataspace/test/wiki/TestWiki/atom-pub&amp;user=test&amp;password=test">http://demo.openlinksw.com/dataspace/test/wiki/TestWiki/atom-pub&amp;user=test&amp;password=test</ulink> </listitem>
<listitem>Query options: Generate URI and Submit </listitem>
<listitem>Log in when prompted as user demo and authorize </listitem>
</orderedlist></listitem>
<listitem>As result the Response Body should be: <programlisting>&lt;result&gt;&lt;code&gt;1&lt;/code&gt;&lt;message&gt;Success&lt;/message&gt;&lt;/result&gt;
</programlisting></listitem>
</orderedlist></section></docbook>