Gallery Ubiquity Commands

  1. establish OAuth session key for ODS Gallery instance:

    Syntax: ods-set-photo-oauth <session_key> Example: ods-set-photo-oauth c4746c96bd8faa99798ad88448ba3bab

    • Example usage you can find here.
  2. create photo album:

    Syntax: ods-create-photo-album <instance_id> name <name> [description <description>] [startDate <startDate>] [endDate <endDate>] [visibility <visibility>] [geoLocation <geoLocation>] Example: ods-create-photo-album 10 name Openlink

    • Example usage you can find here.
  3. update photo album:

    Syntax: ods-update-photo-album <instance_id> name <name> [new_name <new_name>] [description <description>] [startDate <startDate>] [endDate <endDate>] [visibility <visibility>] [geoLocation <geoLocation>] [obsolete <obsolete>] Example: ods-update-photo-album 10 name Openlink new_name OpenLink

  4. delete photo album:

    Syntax: ods-delete-photo-album <instance_id> name <name> Example: ods-delete-photo-album 10 name OpenLink

  5. add photo image:

    Syntax: ods-create-photo-image instance_id album <album> name <name> [description <description>] [visibility <visibility>] sourceUrl <sourceUrl> Example: ods-create-photo-image 10 album OpenLink name Product.jpg sourceUrl http://docs.openlinksw.com/docserverhome550.jpg

  6. get photo image:

    Syntax: ods-get-photo-image instance_id album <album> name <name> Example: ods-get-photo-image 10 album OpenLink name Company.jpg

  7. update photo image:

    Syntax: ods-update-photo-image instance_id album <album> name <name> [new_name <new_name>] [description <description>] [visibility <visibility>] Example: ods-update-photo-image 10 album OpenLink name Company.jpg visibility 1

  8. delete photo image:

    Syntax: ods-delete-photo-image instance_id album <album> name <name> Example: ods-delete-photo-image 10 album OpenLink name Company.jpg

  9. create comment to existing photo image:

    Syntax: ods-create-photo-image-comment instance_id album <album> image <image> text <text> Example: ods-create-photo-image-comment 10 album OpenLink image Company.jpg text OpenLink Company Image: New Year 2009

  10. get photo image comment information by resource ID:

    Syntax: ods-get-photo-image-comment-by-id <comment_id> Example: ods-get-photo-image-comment-by-id 10001

  11. delete photo image comment by resource ID:

    Syntax: ods-delete-photo-image-comment <comment_id> Example: ods-delete-photo-image-comment 10001

  12. set photo instance options/properties:

    Syntax: ods-set-photo-options <instance_id> [show_map <show_map>] [show_timeline <show_timeline>] [discussion_enable <discussion_enable>] [discussion_init <discussion_init>] [albums_per_page <albums_per_page>] Example: ods-set-photo-options 10 discussion_enable 1

  13. get photo instance options/properties:

    Syntax: ods-get-photo-options <instance_id> Example: ods-get-photo-options 10

References