Este contenido aún no está disponible en este idioma.

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));
¿Te ha resultado útil esta página?
¿Cómo podemos mejorar este contenido?
¡Gracias por ayudarnos a mejorar!