Learn R Programming

arcgisutils (version 0.4.0)

arc_item_data: Download an Item's Data

Description

Download the data backing a portal item. This function always returns a raw vector as the type of the data that is downloaded cannot always be known.

Usage

arc_item_data(item, host = arc_host(), token = arc_token())

Value

a raw vector containing the bytes of the data associated with the item. If the response is application/json then the json string is returned without parsing.

Arguments

item

the item ID or the result of arc_item().

host

default "https://www.arcgis.com". The host of your ArcGIS Portal.

token

an httr2_token as created by auth_code() or similar

Details

[Experimental]

See Also

Other portal item: arc_item()

Examples

Run this code
arc_item_data("9df5e769bfe8412b8de36a2e618c7672")

Run the code above in your browser using DataLab