recdotgov-client

recdotgov_client.ToursApi

All URIs are relative to https://ridb.recreation.gov/api/v1

Method HTTP request Description
get_facility_tour GET /facilities/{facilityId}/tours/{tourId} Retrieve a specific tour by id for a facility
get_facility_tours GET /facilities/{facilityId}/tours Retrieve all tours for a facility
get_tour GET /tours/{tourId} Retrieve a specific tour by id
get_tours GET /tours Retrieve all tours

get_facility_tour

Tour get_facility_tour(facility_id, tour_id)

Retrieve a specific tour by id for a facility

This endpoint retrieves a specific tour for a specific facility.

Example

from __future__ import print_function
import time
import recdotgov_client
from recdotgov_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Apikey
configuration = recdotgov_client.Configuration()
configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apikey'] = 'Bearer'

# create an instance of the API class
api_instance = recdotgov_client.ToursApi(recdotgov_client.ApiClient(configuration))
facility_id = 'facility_id_example' # str | Id of the facility
tour_id = 'tour_id_example' # str | Id of the tour

try:
    # Retrieve a specific tour by id for a facility
    api_response = api_instance.get_facility_tour(facility_id, tour_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ToursApi->get_facility_tour: %s\n" % e)

Parameters

Name Type Description Notes
facility_id str Id of the facility  
tour_id str Id of the tour  

Return type

Tour

Authorization

Apikey

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_facility_tours

InlineResponse2007 get_facility_tours(facility_id, query=query, limit=limit, offset=offset)

Retrieve all tours for a facility

This endpoint retrieves all tours for a specific facility.

Example

from __future__ import print_function
import time
import recdotgov_client
from recdotgov_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Apikey
configuration = recdotgov_client.Configuration()
configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apikey'] = 'Bearer'

# create an instance of the API class
api_instance = recdotgov_client.ToursApi(recdotgov_client.ApiClient(configuration))
facility_id = 'facility_id_example' # str | Id of the facility
query = 'query_example' # str | Query filter criteria. Searches on tour name, type, description, and accessible (Yes/No) (optional)
limit = 50 # int | Number of records to return (max 50) (optional) (default to 50)
offset = 0 # int | Start record of overall result set (optional) (default to 0)

try:
    # Retrieve all tours for a facility
    api_response = api_instance.get_facility_tours(facility_id, query=query, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ToursApi->get_facility_tours: %s\n" % e)

Parameters

Name Type Description Notes
facility_id str Id of the facility  
query str Query filter criteria. Searches on tour name, type, description, and accessible (Yes/No) [optional]
limit int Number of records to return (max 50) [optional] [default to 50]
offset int Start record of overall result set [optional] [default to 0]

Return type

InlineResponse2007

Authorization

Apikey

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_tour

Tour get_tour(tour_id)

Retrieve a specific tour by id

This endpoint retrieves a specific tour.

Example

from __future__ import print_function
import time
import recdotgov_client
from recdotgov_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Apikey
configuration = recdotgov_client.Configuration()
configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apikey'] = 'Bearer'

# create an instance of the API class
api_instance = recdotgov_client.ToursApi(recdotgov_client.ApiClient(configuration))
tour_id = 'tour_id_example' # str | Id of the tour

try:
    # Retrieve a specific tour by id
    api_response = api_instance.get_tour(tour_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ToursApi->get_tour: %s\n" % e)

Parameters

Name Type Description Notes
tour_id str Id of the tour  

Return type

Tour

Authorization

Apikey

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_tours

InlineResponse2007 get_tours(query=query, limit=limit, offset=offset)

Retrieve all tours

This endpoint retrieves all tours

Example

from __future__ import print_function
import time
import recdotgov_client
from recdotgov_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Apikey
configuration = recdotgov_client.Configuration()
configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apikey'] = 'Bearer'

# create an instance of the API class
api_instance = recdotgov_client.ToursApi(recdotgov_client.ApiClient(configuration))
query = 'query_example' # str | Query filter criteria. Searches on tour name, type, description, and accessible (Yes/No) (optional)
limit = 50 # int | Number of records to return (max 50) (optional) (default to 50)
offset = 0 # int | Start record of overall result set (optional) (default to 0)

try:
    # Retrieve all tours
    api_response = api_instance.get_tours(query=query, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ToursApi->get_tours: %s\n" % e)

Parameters

Name Type Description Notes
query str Query filter criteria. Searches on tour name, type, description, and accessible (Yes/No) [optional]
limit int Number of records to return (max 50) [optional] [default to 50]
offset int Start record of overall result set [optional] [default to 0]

Return type

InlineResponse2007

Authorization

Apikey

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]