API Methods
Account ...
Blogs ...
Bookings ...
CreditHistory ...
Dashboard ...
DirectCam ...
DirectChat ...
Email ...
FieldReport ...
Groups ...
HotLists ...
Interview ...
Lists ...
Movie ...
Newsfeed ...
PhoneChat ...
Pictures ...
Profile ...
Search ...
Tours ...
Webcam ...

Get Albums

This API operation gets the albums of the user specified in the UserID parameter. When the authenticated user is subscribed to the private gallery of the owner of the album the API will return the ThumbUrl of the album.

URL / Endpoint

Need help with Postman?

GET /v1/Pictures/GetAlbums

GET /v1/Groups/Pictures/GetAlbums (See Group manager)

Request

PropertyTypeDescription
UserID integer Required. The ID of the owner of the album.
ReturnPictureIDs boolean To let the API return the ID's of the pictures set this to true.

Group manager

If the authenticated user is the manager of a group, the user can impersonate another member of the group. This allows the manager to perform tasks of other group members without having to authenticate as them.

The request can be build in the same way as the regular request, but targeted towards the Group manager endpoint. It re-uses the existing UserID property to set the ID of the group member. This means you can only use the Group manager version of this endpoint to get data from your group members.

Request Information

HTTP Method / Verb

Parameters can be passed to this operation using the HTTP GET method by passing parameters over the query string of the URI.

Headers

The REST API uses HTTP request headers to determine what data type is returned or to authenticate the developer's API key. More information can be found in the overview section.

This endpoint has the following optional headers:

HeadersValue
X-MaskImages 1 What's this?

Authentication

An Authorization header is required with every request and must contain the access_token of the user. More information can be found in the Access tokens page.

Scopes

This endpoint does not require any additional scopes.

Samples

GET method

https://api-sandbox.adultwork.com/v1/Pictures/GetAlbums?UserID=123456&ReturnPictureIDs=true

Authorization: bearer {your-access-token}

GET as Group Manager

https://api-sandbox.adultwork.com/v1/Pictures/GetAlbums?UserID=123456&ReturnPictureIDs=true

Authorization: bearer {your-access-token}

Response

PropertyTypeDescription
array of aws:Albums The albums of the user.

Response Sample

The following example shows a sample returned by the API.

{
    "UserID": 123456,
    "AlbumID": 1,
    "AlbumName": "Look at my pictures",
    "AlbumDescription": "My new album!",
    "AlbumSize": 2,
    "Sequence": 0,
"ThumbSafe": false, "ThumbUrl": null, "PictureIDs": [ 1,
2 ] }
<ArrayOfPictureAlbum xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.Pictures">
    <PictureAlbum>
        <AlbumDescription>My new album!</AlbumDescription>
        <AlbumID>1</AlbumID>
        <AlbumName>Look at my pictures</AlbumName>
        <AlbumSize>2</AlbumSize>
        <PictureIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int> </PictureIDs> <Sequence>0</Sequence>
<ThumbSafe>false</ThumbSafe> <ThumbUrl i:nil="true" /> <UserID>123456</UserID> </PictureAlbum>
</ArrayOfPictureAlbum>