[R] Generate oauth token using HTTR package in R

Lac Will out|ook_789D32266F1FD473 @end|ng |rom out|ook@com
Mon Aug 2 20:25:36 CEST 2021

Novice attempting R, as displayed below, to obtain an oauth token using HTTR package in R and have a status code of 401.

Any insight as to the cause of this error and a resolution?

Thanks in advance.

# Status: 401


base64_value <-

response16 <-
  httr::POST (url = "https://api.precisely.com/oauth/token" ,
             httr::add_headers(Authorization = paste("Basic", base64_value, sep = "")),
             body = list(grant_type = "client_credentials"),
             encode = "form"

#verbose(data_out = true, data_in = False, info = false, ssl = false)


Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

	[[alternative HTML version deleted]]

More information about the R-help mailing list