Este conteúdo ainda não está disponível neste 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));
Esta página foi útil?
Como podemos melhorar esse conteúdo?
Agradecemos por nos ajudar a melhorar.