get.site | R Documentation |
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 |
Server object obtained using the connect() function |
site_id |
ID of the model to retrieve |
Response obtained from the /api/sites/{site_id}
endpoint
Tezan Sahu
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.