The following example demonstrates oauth authentication getting the OAuth SID value for ex. for existing Gallery instance "MyGallery" with owner user demo at the OpenLink Demo server.
In order to execute correctly the example, you need to have OAuth Generate Key for the Gallery "MyGallery" instance at OpenLink Demo server. More information and simple scenario how to be done you can find here.
ods-oauth-host http://demo.openlinksw.com/OAuth
ods-set-mode oauth
ods-set-photo-oauth f91ab6efc0d752fa5cf675f2a665572e