%SYS.MFT.Connection.Kiteworks
Class %SYS.MFT.Connection.Kiteworks Extends %SYS.MFT.Connection.Base [ System = 4 ]
Parameters
ACCELLIONVERSION
Parameter ACCELLIONVERSION = 7.1;
Properties
Roles
Property Roles As array Of %String [ Internal, Transient ];
Role definitions for this connection. The role defintions are not saved and refreshed as needed.
Methods
DefaultScope
ClassMethod DefaultScope() As %String
The default scope to use for obtaining the access token.
CreateClient
ClassMethod CreateClient(name As %String, sslConfiguration As %String, clientId As %String, clientSecret As %String, issuer, host As %String = "localhost", port As %Integer = "", prefix As %String = "", useSSL As %Boolean = 1) As %Status
Create an OAuth 2.0 client with the parameters required to authorize with Dropbox.
name is the name to be given to the OAuth 2.0 client.
sslConfiguration is the SSLConfiguration used to make the HTTP request.
clientId and ClientSecret are the id and secret for the OAuth 2.0 client which is obtained from the Kiteworks App definition.
If addiitonal properties are needed, then the Kiteworks OAuth 2.0 client may be opened and modified.
If a server definition does not yet exist for Kiteworks, then a new server definition is created.
RevokeToken
Method RevokeToken() As %Status
Revoke the token associated with this connection. Revoke the token in Kiteworks as well as locally.
MakeRequest
Method MakeRequest(method As %String, parameters As %String, request As %DynamicObject = "", ByRef queryParameters As %String, Output response As %DynamicObject) As %Status
Make an http request to Kiteworks API
MakeUploadRequest
Method MakeUploadRequest(parameters As %String, filename As %String, ByRef queryParameters As %String, body As %BinaryStream, Output response As %DynamicObject) As %Status
Make an upload http request to Kiteworks API
MakeDownloadRequest
Method MakeDownloadRequest(parameters As %String, body As %BinaryStream, Output response As %DynamicObject) As %Status
Make an Download style http request to Kiteworks API