<docbook><section><title>VirtOAuthTestToolExampleBriefcase</title><para> </para>
<bridgehead class="http://www.w3.org/1999/xhtml:h2">Briefcase OAuth REST API Example performed with the Virtuoso OAuth Testing Tool</bridgehead>
<para>The following example demonstrates adding a resource and getting resource info by the ODS REST APIs <emphasis>briefcase.resource.store</emphasis> and <emphasis>briefcase.resource.get</emphasis> using the OAuth Test Tool.
 A full list of the ODS REST APIs for ODS-Briefcase is found <ulink url="../ODS/VirtuosoOdsControllersBriefcase">elsewhere</ulink>.</para>
<orderedlist spacing="compact"><listitem>Go to <ulink url="http://demo.openlinksw.com/ods">http://demo.openlinksw.com/ods</ulink> </listitem>
<listitem>Log in as user demo with password demo </listitem>
<listitem>Go to <emphasis>Settings</emphasis> -&gt; <emphasis>OAuth Keys</emphasis> <figure><graphic fileref="VirtOAuthTestToolExampleBriefcase/o1.png" /></figure> </listitem>
<listitem>Copy the <emphasis>Token</emphasis> value for a Briefcase instance, or create one if none exist.
 For example: 32e2a8fdddb69cb76b0e8309c42e5a7d008fdefc </listitem>
<listitem>Go to <ulink url="http://demo.openlinksw.com/ods/oauth_test.vsp">http://demo.openlinksw.com/ods/oauth_test.vsp</ulink> </listitem>
<listitem>Complete the form as follows — <itemizedlist mark="bullet" spacing="compact"><listitem> <emphasis>Server</emphasis>: http://demo.openlinksw.com/ods/api </listitem>
<listitem> <emphasis>Consumer Key</emphasis>: 32e2a8fdddb69cb76b0e8309c42e5a7d008fdefc </listitem>
<listitem> <emphasis>API method</emphasis>: briefcase.resource.store </listitem>
<listitem> <emphasis>API parameters</emphasis>: path=/DAV/home/demo/Public/mytest&amp;content=TEST </listitem>
<listitem> <emphasis>Query options</emphasis>: choose <emphasis>Generate URI and Submit</emphasis> from the menu <figure><graphic fileref="VirtOAuthTestToolExampleBriefcase/obf1.png" /></figure> </listitem>
</itemizedlist></listitem>
<listitem>Click the <emphasis>Execute</emphasis> button.
</listitem>
<listitem>Click the <emphasis>Authorize</emphasis> button.
<figure><graphic fileref="VirtOAuthTestToolExampleBriefcase/obf2.png" /></figure> </listitem>
<listitem>The generated URI and the output message from executing the ODS REST API will be shown.
 In our case, the ID of the newly created resource will be: 110997 <figure><graphic fileref="VirtOAuthTestToolExampleBriefcase/obf3.png" /></figure> </listitem>
<listitem>Now let&#39;s get the data for the created resource.
 Complete the form as follows — <itemizedlist mark="bullet" spacing="compact"><listitem> <emphasis>API method</emphasis>: briefcase.resource.get </listitem>
<listitem> <emphasis>API parameters</emphasis>: path=/DAV/home/demo/Public/mytest </listitem>
<listitem> <emphasis>Query options</emphasis>: choose <emphasis>Generate URI and Submit</emphasis> from the menu </listitem>
</itemizedlist></listitem>
<listitem>Click the <emphasis>Execute</emphasis> button.
</listitem>
<listitem>The <emphasis>Response Body</emphasis> text-area will show the retrieved content for the resource with the given ID.
<figure><graphic fileref="VirtOAuthTestToolExampleBriefcase/obf4.png" /></figure></listitem>
</orderedlist><para><ulink url="CategoryBriefcase">CategoryBriefcase</ulink>  <ulink url="CategoryODS">CategoryODS</ulink> <ulink url="CategoryOdsBriefcase">CategoryOdsBriefcase</ulink> <ulink url="CategoryTutorial">CategoryTutorial</ulink> <ulink url="CategoryOAuth">CategoryOAuth</ulink> <ulink url="CategoryDocumentation">CategoryDocumentation</ulink> </para>
</section></docbook>