View source: R/api_connector.R
This function allows you to PUT farm new information with the API and retrieve your API KEY
1 2 3 4 5 6 7 8 9 10 11 | asapi_farm_put(
client,
farm,
new_type = "NULL",
new_region = "NULL",
new_commune = "NULL",
new_geojson = "NULL",
email_admin,
api_key,
url = "https://api.agrospace.cl"
)
|
client |
Client name |
farm |
Farm name to query |
new_type |
New farm type. If the value is 'NULL' it does not change. |
new_region |
New farm region. If the value is 'NULL' it does not change. |
new_commune |
New farm Commune. If the value is 'NULL' it does not change. |
new_geojson |
New farm geojson. If the value is 'NULL' it does not change. |
email_admin |
Email of the user who is editing. It must be 'admin'. |
api_key |
Api Key obtain from /auth |
url |
URL for dev purpose |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.