Getting Started with rPublic

Generating your token file

  1. To get started please visit and request api access. Public -> Settings -> Security -> API

  2. All requests in this package must be authenticated. You will need to save you token files as “rp_tokens.rds” in your working directory. Here is an example of how to run it and save them.

Exchange secret key for an access token.

You can manually change the expiration in minutes here but the default will be 120 minutes.

Test Access/Bearer Token

Request Account info from the API to make sure your tokens work