Listings With Location Search

The Activities Listings API allows users to search for activities with location.

For more information about the Listings API, see Listings API documentation.

1. Build the request object using the classes defined in the SDK.

GetActivityListingsOperationParams getActivityListingsOperationParams =
        GetActivityListingsOperationParams.builder()
            .partnerTransactionId("PARTNER TRANSACTION ID")
            .location("Seattle")
            .links(Arrays.asList(GetActivityListingsOperationParams.Links.AD))
            .startDate(LocalDate.now().plusDays(5))
            .endDate(LocalDate.now().plusDays(8))
            .locale("en_US")
            .build();

2. Make the API call using service client.

Response<ActivityListingsResponse> listingsResponse =
    xapClient.execute(new GetActivityListingsOperation(getActivityListingsOperationParams));
Did you find this page helpful?
How can we improve this content?
Thank you for helping us improve!