get.site.Rd
Get details of PEcAn Site from the database using site id.
Hits the /api/sites/{site_id}
API endpoint.
get.site(server, site_id)
Server object obtained using the connect() function
ID of the model to retrieve
Response obtained from the /api/sites/{site_id}
endpoint
server <- connect(url="http://pecan.localhost:80", username="carya", password="illinois")
# Get details of the WillowCreek(US-WCr) site (id = 676)
res <- get.site(server, site_id=676)
#> Sorry! Server not responding.