AccountsApi: Accounts operations

Description Format Methods Public fields Methods Examples

Description

factset.analyticsapi.engines.Accounts

Format

An R6Class generator object

Methods

GetAccounts Get accounts and sub-directories in a directory This endpoint looks up all ACCT and ACTM files and sub-directories in a given directory.

Public fields

apiClient

Handles the client-server communication.

Methods

Public methods


Method new()

Usage
AccountsApi$new(apiClient)

Method GetAccounts()

Usage
AccountsApi$GetAccounts(path, ...)

Method GetAccountsWithHttpInfo()

Usage
AccountsApi$GetAccountsWithHttpInfo(path, ...)

Method clone()

The objects of this class are cloneable with this method.

Usage
AccountsApi$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
## Not run: 
####################  GetAccounts  ####################

library(factset.analyticsapi.engines)
var.path <- 'path_example' # character | The directory to get the accounts and sub-directories in

#Get accounts and sub-directories in a directory
api.instance <- AccountsApi$new()

#Configure HTTP basic authorization: Basic
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- tryCatch(
            api.instance$GetAccounts(var.path),
            ApiException = function(ex) ex 
         )
# In case of error, print the error object 
if(!is.null(result$ApiException)) {
  cat(result$ApiException$toString())
} else {
# deserialized response object
response.object <- result$content
# response headers
response.headers <- result$response$headers
# response status code
response.status.code <- result$response$status_code
}



## End(Not run)

factset.analyticsapi.engines documentation built on Feb. 2, 2020, 5:06 p.m.