secret_id: Sets Application ID and Secret

Description Usage Arguments Details References Examples

View source: R/secret_id.R

Description

Set Client ID and Secret. Needed for interfacing with Clarifai. Run this before anything else.

Usage

1
secret_id(appdetails = NULL, force = FALSE)

Arguments

appdetails

A vector of client_id, client_secret. Get these from https://developer.clarifai.com/. Set them before you use other functions.

force

force reset client id and secret

Details

The function looks for ClarifaiId and ClarifaiSecret in the environment. If it doesn't find them and if we don't want to force change in them, it looks for arguments. And if no arguments are passed, it asks for user to input the values.

References

https://developer.clarifai.com/

Examples

1
2
3
4
## Not run: 
setapp(c("client_id", "client_secret"))

## End(Not run)

clarifai documentation built on May 2, 2019, 2:44 a.m.