You are viewing a section of Superface that will be deprecated in Q4 2023. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit superface.ai/docs/migrate.

List Activities

booking/list-activities@1.0.0
1 provider

List Activities

Lists activities for which a booking can be created.

Input
Page
Result
Activities
Next Page
Total count

1.Choose a provider

2.Use ListActivities with mock in your code

Below instructions are for our Node.js SDK. Use OneService for other languages.
npm i @superfaceai/one-sdk

Structure details

Input (object)

page
Pagination cursor (obtained from `nextPage`).

Example

Result (object)

activities
A list of available activities. May be incomplete, check `nextPage` and repeat the request if necessary.
id
Unique identifier of the activity.
name
Name of the activity.
description
Full description of the activity.
shortDescription
May contain the abridged version of the description of the activity, or a different short summary.
images
Images pertaining to the activity.
url
URL of the image.
thumbnailUrl
URL of the thumbnail of the image.
caption
Optional caption of the image.
videos
Videos pertaining to the activity.
url
URL of the video.
thumbnailUrl
URL of the thumbnail of the video.
caption
Optional caption of the video.
tags
Provider-specific tags describing the activity. (e.g. SPORT, FAMILY_FRIENDLY, BUS_TOUR, etc.)
customFields
Provider-specific fields relating to the activity.
key
Key of the field.
value
Value of the field.
nextPage
Cursor of the next page of the listing.
total
Number of activities in total.

Example

Implementation details

Provider
mock
Use case
ListActivities
Author
@superface
Source
Verified