genHeader: Generate authentication string for REST API interaction

Description Usage Arguments Value Examples

View source: R/genHeader.R

Description

Generate authentication string for REST API interaction

Usage

1
2
3
4
5
6
7
8
genHeader(
  verb,
  resource.type = "docs",
  resource.link,
  stored.time,
  master.key = envCosmosDB,
  debug = FALSE
)

Arguments

verb

Type of operation to be done in the request

resource.type

Target scope of the operation. Defaults to docs

resource.link

Path to the database and collection being used

stored.time

Time to pass in for hashing

master.key

Access key to the database. Defaults to the envCosmosDB environment

debug

Whether to print verbose messages or not. Defaults to FALSE

Value

String for use in the header as authentication to the CosmosDB

Examples

1
genHeader("POST", "docs", "dbs/dbName/colls/collName", Sys.time())

aaron2012r2/cosmosR documentation built on Nov. 11, 2020, 2:32 a.m.