set_endpoint: Set SB endpoint

View source: R/AAA.R

set_endpointR Documentation

Set SB endpoint

Description

Sets the internal URLS used to either the production or development (beta) SB server. URLS are stored internally to the package

Usage

set_endpoint(endpoint = c("production", "development"))

Arguments

endpoint

Indicate which SB endpoint you want to use options: c('production','development')

Author(s)

Luke Winslow

Examples


set_endpoint('prod')

# getting item from production SB servers
item_get('5060b03ae4b00fc20c4f3c8b')

set_endpoint('dev')
# getting item from beta SB servers
item_get('521e4686e4b051c878dc35d0')




USGS-R/sbtools documentation built on June 1, 2024, 9:47 p.m.