soql_add_endpoint {soql} | R Documentation |
Add SODA API endpoint
Description
Add an endpoint to an already-existing soql
object.
Usage
soql_add_endpoint(soql_list, endpoint)
Arguments
soql_list |
The |
endpoint |
The endpoint should be the URL of the data, without any parameters. |
Value
Returns a new soql
object, with the endpoint added, for use in other functions.
References
Socrata's documentation on what an endpoint is
See Also
Examples
if (require(magrittr)) {
# With pipes
my_url <- soql() %>%
soql_add_endpoint("https://fake.soda.api/resource.json") %>%
as.character()
} else {
# Without pipes
soql_chain <- soql()
soql_chain <- soql_add_endpoint(soql_chain, "https://fake.soda.api/resource.json")
my_url <- as.character(soql_chain)
}
[Package soql version 0.1.1 Index]