Use this method to get a the private gallery of an AdultWork.com member.
Your project needs to be approved to be able to use this endpoint. Submitting your project is easy. Open your Project and click Start Submission.
In order to have the API return the images, the authenticated user must be subscribed to the gallery. See the example Subscribe to gallery
GET
/v1/Pictures/GetGallery
GET
/v1/Groups/Pictures/GetGallery
(See Group manager)
Property | Type | Description |
---|---|---|
UserID |
integer | Required. The User ID of the AdultWork.com member you wish the API to return the gallery of. |
AlbumID |
integer | The ID of the album the gallery you wish the API to return. |
OrderBy |
string | Sets the order in which the pictures will be returned. Default is dateuploaded. Order options are dateuploaded , gallerysize , galleryprice and size . |
PageSize |
integer | Sets the number of pictures on each page of the result set. Accepts values from 1 to 100 . Default it 50 . |
PageNumber |
integer | Returns a specific page in the result set. Accepts values from 1 onwards. |
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.
Parameters can be passed to this operation using the HTTP GET method by passing parameters over the query string of the URI.
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:
Headers | Value | |
---|---|---|
X-MaskImages |
1 |
What's this? |
Your API-Key is required with every request if you don't supply the Authorization header and can be passed in as a header or a query-string parameter. Don't have an API-Key? Get one now.
An Authorization header is optional with every request and must contain the access_token of the user. To let the API return the correct image paths, this is required.
Note: this can only be done when the authenticated user has a valid subscription. When using the Authorization header with a valid access_token do not use the API-Key.
This endpoint does not require any additional scopes.
Property | Type | Description |
---|---|---|
PageNumber |
integer | Represents the current page number. |
PageCount |
integer | Represents the total number of pages in the result set. |
PageSize |
integer | Represents how many pictures are listed on each page. |
PicturesTotal |
integer | Represents the total number of pictures in the result set. |
Pictures |
Array of aws:Picture | List of pictures data. |
The following example shows the picture of one user. If the authenticated user is subscribed to the private gallery of the owner the ThumbUrl
, PreviewUrl
and FileUrl
will have values.