Description Usage Arguments Examples
Log in using a Personal Access Token or OAuth 2.0 authenticaion. OAuth does
not require sharing a token, but will require creating a connected app in the dashboard.
Once you add the app id and secret, anytime you use sq_auth
without a personal
access token, then you will be directed to your default web browser, asked to sign
in to your Square account, and to grant the connected app permission to pass data
back to you on your behalf. By default, the oauth token credentials are cached
in a file named .httr-oauth-squareupr
in the current working directory.
1 2 3 4 5 |
personal_access_token |
Square |
token |
optional; an actual OAuth 2.0 token object or the path to a valid token
stored as an |
app_id, app_secret, callback_url |
the "App Id","App Secret", and "Callback URL" when using a connected app. NOTE: You must setup your own connected app and supply these arguments. |
cache |
logical or character; TRUE means to cache using the default cache
file |
verbose |
logical; do you want informative messages? |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.