Retrieving a photo or video
Added by IBM contributorIBM | Edited by Claudia R Elbourn on July 23, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Retrieve the entry for a photo or video that is used by the document summary details view in the Media Gallery.
Retrieve an Atom document representation of a photo or video with the information used by the document summary details view in the Media Gallery user interface.
Method URI Description
GET /files/{auth}/cmis/repository/{repositoryId}/object/{objectId} You can derive the URL from the photos and videos feed. Find the document's entry in the feed and use the "href" attribute value of the element as the web address.
Name Type Optional Description
string No Object ID. By default the Media Gallery provides and uses a "Social Photo" object type with a CMIS id of "ada30772-31fe-44bf-b8b4-dd7e4f072cd6" and a "Social Video" object type with a CMIS id of "ada30772-31fe-44bf-b8b4-dd7e4f072ad6".
string No ID of the repository containing the media content
enumerated No The authorization protocol being used by your application to access Connections Cloud.
Authorized values:
  • basic
  • oauth
Name Type Optional Description
boolean Yes Use "true"
boolean Yes Use "true"
string Yes Use "source"
boolean Yes Use "true" so that tags associated with the file will be incuded
Name Type Optional Description
enumerated No The authentication mechanism selected by your application to access the API.
Basic is the Base64 encoding of the IBM Connections Cloud username and password: Base64(username:password). For example, Base64(
Bearer is the oauth 2.0 access token that is generated when the user grants your application access to IBM Connections Cloud services.
See the reference topic "OAuth 2.0 APIs for web server flow" for more information.
Authorized values:
  • bearer
  • basic
Content Type: application/atom+xml
Code Description
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.