Use this method to get an AdultWork.com user's bookings.
GET
/v1/Bookings/GetBookings
GET
/v1/Groups/Bookings/GetBookings
(See Group manager)
Property | Type | Description |
---|---|---|
BookingsPerPage |
integer | Sets the number of bookings on each page of the result set. Accepts values from 1 to 100 . Default is 50 . |
PageNumber |
integer | Returns a specific page in the result set. Accepts values from 1 onwards. |
OrderBy |
string | Sets the order in which the bookings will be returned. If set to Default is date-asc. Order options are date-asc , date-desc , nickname-asc , nickname-desc , meetdate-asc and meetdate-desc . |
UnreadOnly |
boolean | If set to true only the unread bookings are returned. Default is false . |
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. Additionally, it has the following extra parameters:
Property | Type | Description |
---|---|---|
UserID |
integer | Required. The ID of a member in the group that will be impersonated for this request. |
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.
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.
This endpoint requires the following scope:
Scope |
---|
account_escort_bookings |
Property | Type | Description |
---|---|---|
PageCount |
integer | Represents the total number of pages in the result set. |
PageNumber |
integer | Represents the current page number. |
BookingsTotal |
integer | Represents the total number of bookings in the result set. |
BookingsPerPage |
integer | Represents how many bookings are listed on each page. |
Bookings |
Array of aws:Booking | List of booking data. |
The following example shows the AdultWork.com result for the request.