Home > Class Reference > %SYS namespace > %SYS.MFT.Connection.Dropbox
Private   Storage    

%SYS.MFT.Connection.Dropbox

persistent class %SYS.MFT.Connection.Dropbox extends %SYS.MFT.Connection.Base

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
7

Summary

Properties
ApplicationName HttpRequest Name SSLConfiguration
Service URL Username
Methods
%AddToSaveSet %AddToSyncSet %BMEBuilt %BuildIndicesAsync
%BuildIndicesAsyncResponse %CheckConstraints %CheckConstraintsForExtent %ClassIsLatestVersion
%ClassName %ComposeOid %ConstructClone %Delete
%DeleteExtent %DeleteId %DispatchClassMethod %DispatchGetModified
%DispatchGetProperty %DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty
%DispatchSetProperty %Exists %ExistsId %Extends
%GUID %GUIDSet %GetLock %GetParameter
%GetSwizzleObject %Id %InsertBatch %IsA
%IsModified %IsNull %KillExtent %KillExtentData
%LoadFromMemory %LockExtent %LockId %New
%NormalizeObject %ObjectIsNull %ObjectModified %Oid
%OnBeforeAddToSync %OnDetermineClass %Open %OpenId
%OriginalNamespace %PackageName %PhysicalAddress %PurgeIndices
%Reload %RemoveFromSaveSet %ResolveConcurrencyConflict %RollBack
%Save %SaveDirect %SaveIndices %SerializeObject
%SetModified %SortBegin %SortEnd %SyncObjectIn
%SyncTransport %UnlockExtent %UnlockId %ValidateIndices
%ValidateObject ContentURL CreateClient DefaultScope
DefaultURL DeleteId GetAuthorizationCodeURL IsAuthorized
MakeDownloadRequest MakeHttpRequest MakeRPCRequest MakeUploadRequest
OAuth2ClientCount Open RevokeToken Save

Methods

method ContentURL() as %String
The URL for uploading and downloading files.
classmethod CreateClient(name As %String, sslConfiguration As %String, clientId As %String, clientSecret As %String, issuer As %String = "https://api.dropboxapi.com", 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 Dropbox App definition.
If addiitonal properties are needed, then the Dropbox OAuth 2.0 client may be opened and modified.
If a server definition does not yet exist for Dropbox, then a new server definition is created.
classmethod DefaultURL() as %String
Each subclass will define the DefaultURL method to supply the default URL for the service.
method MakeDownloadRequest(parameters As %String, request As %DynamicObject, body As %BinaryStream, Output response As %DynamicObject) as %Status
Make an Download style http request to Dropbox API
method MakeRPCRequest(parameters As %String, request As %DynamicObject, Output response As %DynamicObject) as %Status
Make an RPC style http request to Dropbox API
method MakeUploadRequest(parameters As %String, request As %DynamicObject, body As %BinaryStream, Output response As %DynamicObject) as %Status
Make an Upload style http request to Dropbox API
method RevokeToken() as %Status
Revoke the token associated with this connection. Revoke the token in Dropbox as well as locally.