View source: R/sm-mastodon-api.R
| sm_api_set_auth_mastodon | R Documentation |
Update the underlying storage with the mastodon access token of a network. The token is encrypted.
sm_api_set_auth_mastodon(shiny_input_list = NULL, network)
shiny_input_list |
List of shiny input values containing the mastodon specific credentials if not provided the input will be requested interactively |
network |
char, the network the token belongs to. The instance the token has to be issued by is the one the network is named after. |
Update the authentication token of the network. The instance is not asked for: it is
part of the network identifier, set once when registering it with
sm_add_instance.
Nothing. Called for side effects (saving credentials)
save_config
## Not run:
#Setting the configuration values
sm_api_set_auth_mastodon(
shiny_input_list = list(
mastodon_mstdn_party_token = "your token here"
),
network = "mastodon.mstdn.party"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.