set_refresh_token: Function to set the refresh token in the smart connect...

View source: R/connection.R

set_refresh_tokenR Documentation

Function to set the refresh token in the smart connect object.

Description

Function to set refresh token (obtained from a successful login flow) in the smart connect object.

Usage

set_refresh_token(object, refresh_token)

Arguments

object

an S4 object of type smart connect.

refresh_token

a string containing the refresh token from login flow.

Details

This function allows to set the refresh token of the smart connect object. The refresh token is obtained from a successful login flow. After the login flow, the user is redirected to a pre-specified URL. The refresh token is posted alongwith as a query parameter.

Value

Returns the object with refresh token field set.


angelbroking-github/smartapi-r documentation built on March 30, 2022, 8:04 a.m.