@@ -82,7 +82,7 @@ For more help, see https://plot.ly/R or contact <
[email protected] >.")
82
82
83
83
# public attributes/methods that the user has access to
84
84
pub <- list (username = username , key = key , filename = " from api" , fileopt = NULL ,
85
- version = " 0.5.1 " )
85
+ version = " 0.5.14 " )
86
86
priv <- list ()
87
87
88
88
pub $ makecall <- function (args , kwargs , origin ) {
@@ -91,7 +91,7 @@ For more help, see https://plot.ly/R or contact <
[email protected] >.")
91
91
if (is.null(kwargs $ fileopt ))
92
92
kwargs $ fileopt <- NULL
93
93
url <- paste(base_url , " /clientresp" , sep = " " )
94
-
94
+
95
95
respst <- postForm(url , platform = " R" , version = pub $ version ,
96
96
args = toJSON(args , digits = 50 , collapse = " " ), un = pub $ username ,
97
97
key = pub $ key , origin = origin ,
@@ -101,7 +101,7 @@ For more help, see https://plot.ly/R or contact <
[email protected] >.")
101
101
" cacert.pem" ,
102
102
package = " RCurl" )))
103
103
if (is.raw(respst )) {
104
- respst <- rawToChar(respst )
104
+ respst <- rawToChar(respst )
105
105
}
106
106
107
107
resp <- fromJSON(respst , simplify = FALSE )
@@ -171,7 +171,10 @@ For more help, see https://plot.ly/R or contact <
[email protected] >.")
171
171
sep = " /" ),
172
172
httpheader = headers ,
173
173
writefunction = response_handler $ update ,
174
- headerfunction = header_handler $ update )
174
+ headerfunction = header_handler $ update ,
175
+ .opts = list (sslversion = 1 , # 1 is for TLSv1
176
+ cainfo = system.file(" CurlSSL" , " cacert.pem" ,
177
+ package = " RCurl" )))
175
178
resp_header <- as.list(parseHTTPHeader(header_handler $ value()))
176
179
177
180
# Parse status
0 commit comments