The Photos API provides a range of actions for manipulating photos within Unet.
photos/
RESOURCE_URI
— URI is obtained from token exchange point.
TARGET_RESOURCE_URI
— URI is obtained from the "sites/" or the "contacts/" endpoint.
Prefix | Endpoint | Description |
---|---|---|
RESOURCE_URI | photos/ | Getting a list of photos |
RESOURCE_URI | photos/add/ | Adding a photo |
RESOURCE_URI | photos/ID | Retrieving photo details |
RESOURCE_URI | photos/ID/comments/ | Getting a list of photo comments |
RESOURCE_URI | photos/ID/comments/add/ | Adding a comment for the photo |
RESOURCE_URI | photos/ID/rating/ | Getting a list of photo ratings |
RESOURCE_URI | photos/ID/rating/add/ | Adding a rating for the photo |
RESOURCE_URI | photos/ID/tag/ | Tagging a photo |
RESOURCE_URI | photos/ID/sort/ | Sorting a photo |
RESOURCE_URI | photos/ID/move/ | Moving a photo |
RESOURCE_URI | photos/ID/edit/ | Editing a photo |
RESOURCE_URI | photos/ID/delete/ | Deleting a photo |
RESOURCE_URI | photos/categories/ | Getting a list of categories |
RESOURCE_URI | photos/categories/add/ | Adding a category |
RESOURCE_URI | photos/categories/ID | Retrieving category details |
RESOURCE_URI | photos/categories/ID/edit/ | Editing a category |
RESOURCE_URI | photos/categories/ID/sort/ | Sorting a category |
RESOURCE_URI | photos/categories/ID/move/ | Moving a category |
RESOURCE_URI | photos/categories/ID/delete/ | Deleting a category |
photos/
photos/ID
photos/add/
photos/ID/tag/
photos/ID/move/
photos/ID/sort/
photos/ID/edit/
photos/ID/delete/
photos/categories/
photos/categories/ID
photos/categories/add/
photos/categories/ID/edit/
photos/categories/ID/sort/
photos/categories/ID/delete/
Name | Description |
---|---|
limit (o) |
Number of items expected in response. |
cursor (o) |
The value of the |
category_id (o) |
Category ID whose items are requested. |
author_uid (o) |
User ID whose items are requested. |
fields (o) |
@PhotosItemFields |
Name | Description |
---|---|
fields (o) |
@PhotosItemFields |
Name | Description |
---|---|
items[] |
|
limit |
Number of returned items (items per page). |
next_cursor |
URL for the next portion of items (next page). |
prev_cursor |
URL for the previous portion of items (previous page). |
total_count |
Total number of items. |
Name | Description |
---|---|
id |
Photo ID. |
category_id |
Album ID. |
author_uid |
ID of the user who added the photo. |
publish_time |
Publish time. |
photo_url |
Photo URL. |
photo_width |
Photo width. |
photo_height |
Photo height. |
photo_details ? |
|
title |
Photo title. |
message ? |
HTML formatted text of a photo. |
access ? |
|
can_comment ? |
|
can_edit ? |
|
can_share ? |
|
is_pending ? |
Flag that describes whether the photo is pending approval. |
rating ? |
|
comments_count ? |
Total number of comments for the photo. |
shares_count ? |
Total number of sharings. |
tags[] ? |
The list of tags. |
attachments ? |
Name | Description |
---|---|
tags |
@PhotosTagsModel |
exif |
@PhotosExifModel |
Name | Description |
---|---|
category_id |
Album ID. |
title |
Photo name. |
message (r) |
Photo description (HTML formatted). |
access |
|
publish_at |
Date and time of publication of the photo. |
attachments[] |
|
tags[] |
The list of tags. |
Name | Description |
---|---|
title |
Album name. |
access |
Name | Description |
---|---|
items[] |
Name | Description |
---|---|
id |
Album ID. |
title |
Album name. |
items_count |
Number of photos in the album. |
access |
|
sort |
Sorting value. |
Name | Description |
---|---|
after_item (r) |
Photo ID, after which the target photo must be placed. |
Name | Description |
---|---|
sort |
Sorting value. |
Name | Description |
---|---|
after_item (r) |
Album ID, after which the target album must be placed. |
Name | Description |
---|---|
sort |
Sorting value. |
Name | Description |
---|---|
mode |
Possible values:
|
member_groups |
Bitmask with member groups IDs |