# Example with mock response
mock_response <- list(
islands = list(
list(code = "1234-5678-9012", title = "Mock Island"),
list(code = "2345-6789-0123", title = "Test Island")
)
)
# In practice, this would come from the API
if (FALSE) {
islands <- get_islands(limit = 50)
}
Run the code above in your browser using DataLab