DSConnect | R Documentation |
initializer
initializer
Config
: config file path
Username
: Your id
Password
: Your Password
Proxies
: Proxy Server details (if any)
SslCert
: ssl Certifactes file path
Url
: internal parameter set by application
RequestUrl
: internal parameter set up by application
Token
: Token received on successfull logon
TokenExpiry
: Expiry time of the token
Timeout
: Max Timeout set in Configuartion for the process to complete
Version
: Application Version
AppID
: Application Id
new()
DSConnect connects to the Datastream web service on behalf of derived classes and helps to send and retrieve data
DSConnect connects to the Datastream web service on behalf of derived classes
DSConnect$new( config = NULL, username = NA, password = NA, proxies = NULL, sslCert = NULL, service = NULL )
config
: config path
username
: your username
password
: your password
proxies
: proxy url, if any
sslCert
: path to ssl cert file
service
: internally set by the application
user details can be supplied from a config file or passed directly as parameters in the constructor of the derived user object type class.
1) Using ini file (e.g. config.ini) with format [credentials] username=YourID password=YourPwd [proxies] url=Your Proxy Url port=Proxy port username=Proxy Username password=Proxy Password [cert] sslCertFile=YourCertFile #only read if no sslCertFile entry sslCertPath=YourCertPath
getJsonResponse()
This method makes the query against the API service and does some basic error handling
DSConnect$getJsonResponse(requestUrl, request)
requestUrl
: Url used to send the Post request
request
: Raw Datastream request
getToken()
getToken uses you credentials to try and obtain a token to be used in subsequent request for data. The returned token is valid for 24 hours
DSConnect$getToken()
IsValid()
IsValid checks whether the token is valid against the token expiry time
DSConnect$IsValid()
CheckToken()
CheckToken checks whether the token is valid against the token expiry time and generates new token if the token has expired.
DSConnect$CheckToken()
clone()
The objects of this class are cloneable with this method.
DSConnect$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.