generate_auth_code: Make authorization request

Description Usage Arguments Value

View source: R/generate_auth_code.R

Description

This function should be ran only once to create a user code. It will make a request. Once the request is made, copy the code (it will be valid for 1 minute)

Usage

1
2
3
4
5
generate_auth_code(
  client_id,
  scope = c("ZohoCreator.report.READ", "ZohoCreator.meta.application.READ"),
  redirect_url
)

Arguments

client_id

A string. The client ID that was generated when you [registered the client application](https://www.zoho.com/creator/help/api/v2/register-client.html)

scope

A string. The Zoho creator scope that you want to access. See [scope documentation](https://www.zoho.com/creator/help/api/v2/oauth-overview.html)

redirect_url

A url. One of the authorized redirect URIs that you associated while registering the [client application.](https://www.zoho.com/creator/help/api/v2/register-client.html)

Value

A browser to accept the authorization will prompt. Click OK. Upon Accept the request will be approved and the user will be redirected back to URI of the client application (that was specified in the previous step) with keys in the query string. For example: https://www.zylker.com/callback?*code*=1000.xxxxxxxxe1a88.xxxxxxxx40a3&*location*=us&*accounts-server*=https


araupontones/zohor documentation built on Dec. 19, 2021, 4:35 a.m.