arc_self_meta | R Documentation |
The function returns the /self
resource from the ArcGIS REST API. The /self
endpoint
returns the view of the portal as seen by the current user, whether anonymous
or signed in.
arc_self_meta(token = arc_token(), error_call = rlang::current_call())
token |
an object of class |
error_call |
the caller environment to be used when propagating errors. |
See the endpoint documentation for more details.
The Portal Self response can vary based on whether it's called by a user, an app, or both.
The response includes user and appinfo properties, and the variations in responses are primarily related to these two properties. As the names indicate, the user property includes information about the user making the call, and the appinfo property includes information pertaining to the app that made the call.
A named list.
## Not run:
set_arc_token(auth_code())
self <- arc_self_meta()
names(self)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.