generate_token: Fetch access token given the refresh token.

View source: R/connection.R

generate_tokenR Documentation

Fetch access token given the refresh token.

Description

This function returns an access token given the inputs, that can be used for subsequent api calls.

Usage

generate_token(object,refresh_token)

Arguments

object

An object of type smart connect, must have refresh token set.

refresh_token

refresh token is passed.

Details

This function generate the 'access_token' by exchanging 'refresh_token'.The 'refresh_token' obtained after the login flow. the 'access_token' required for all subsequent requests. The object passed in this call must already have 'refresh_token' set. A successful call also set the user data within the object.

Value

A string containing the access token.


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