C# Class Azi.Amazon.CloudDrive.AmazonDrive

Root class for API. Provides authentication methods.
Afficher le fichier Open project: Rambalac/AmazonCloudDriveApi Class Usage Examples

Méthodes publiques

Méthode Description
AmazonDrive ( string clientId, string clientSecret ) : System

Initializes a new instance of the AmazonDrive class.

AuthenticationByCode ( string code, string redirectUrl ) : Task
AuthenticationByExternalBrowser ( CloudDriveScopes scope, System.TimeSpan timeout, CancellationToken cancelToken = null, string unformatedRedirectUrl = "http://localhost:{0}/signin/", Func portSelector = null ) : Task
AuthenticationByTokens ( string authToken, string authRenewToken, System.DateTime authTokenExpiration ) : Task
BuildLoginUrl ( string redirectUrl, CloudDriveScopes scope ) : string

Private Methods

Méthode Description
CallOnTokenUpdate ( string access_token, string refresh_token, System.DateTime expires_in ) : void
CreateListener ( string redirectUrl, string &realRedirectUrl, Func portSelector = null ) : HttpListener
DefaultPortSelector ( int lastPort, int time ) : int
GetContentUrl ( ) : Task
GetMetadataUrl ( ) : Task
GetRoot ( ) : Task
GetToken ( ) : Task
IAmazonAccount ( ) : Task
IAmazonAccount ( ) : Task
IAmazonAccount ( ) : Task
IAmazonFiles ( string id, Task>.Func streammer, long fileOffset, long length ) : Task
IAmazonFiles ( string id, System.Stream stream, long fileOffset, long length, int bufferSize, long>.Func progress ) : Task
IAmazonFiles ( FileUpload fileUpload ) : Task
IAmazonFiles ( string id, Func streamCreator, CancellationToken token, long>.Func progress ) : Task
IAmazonFiles ( string parentId, string fileName, Func streamOpener, bool allowDuplicate ) : Task
IAmazonFiles ( string id, byte buffer, int bufferIndex, long fileOffset, int length ) : Task
IAmazonNodes ( string id ) : Task
IAmazonNodes ( string parentid, string nodeid ) : Task
IAmazonNodes ( ) : Task
IAmazonNodes ( string id ) : Task
IAmazonNodes ( string parentId, string name ) : Task
IAmazonNodes ( string id, string oldDirId, string newDirId ) : Task
IAmazonNodes ( string id ) : Task>
IAmazonProfile ( ) : Task
MakeMD5Filter ( string md5 ) : string
MakeNameFilter ( string name ) : string
MakeParentFilter ( string id ) : string
ProcessRedirect ( HttpListenerContext context, string redirectUrl ) : Task
ScopeToString ( CloudDriveScopes scope ) : string
SendResponse ( HttpListenerResponse response, byte body ) : Task
SettingsSetter ( HttpWebRequest client ) : Task
UpdateToken ( ) : Task

Method Details

AmazonDrive() public méthode

Initializes a new instance of the AmazonDrive class.
public AmazonDrive ( string clientId, string clientSecret ) : System
clientId string Your Application ClientID. From Amazon Developers Console.
clientSecret string Your Application Secret. From Amazon Developers Console.
Résultat System

AuthenticationByCode() public méthode

public AuthenticationByCode ( string code, string redirectUrl ) : Task
code string
redirectUrl string
Résultat Task

AuthenticationByExternalBrowser() public méthode

public AuthenticationByExternalBrowser ( CloudDriveScopes scope, System.TimeSpan timeout, CancellationToken cancelToken = null, string unformatedRedirectUrl = "http://localhost:{0}/signin/", Func portSelector = null ) : Task
scope CloudDriveScopes
timeout System.TimeSpan
cancelToken System.Threading.CancellationToken
unformatedRedirectUrl string
portSelector Func
Résultat Task

AuthenticationByTokens() public méthode

public AuthenticationByTokens ( string authToken, string authRenewToken, System.DateTime authTokenExpiration ) : Task
authToken string
authRenewToken string
authTokenExpiration System.DateTime
Résultat Task

BuildLoginUrl() public méthode

public BuildLoginUrl ( string redirectUrl, CloudDriveScopes scope ) : string
redirectUrl string
scope CloudDriveScopes
Résultat string