C# Class Transloadit.Transloadit

Handles whole data transfer procedures between Your Application and Transloadit
Inheritance: ITransloadit
Show file Open project: nkranitz/transloadit-csharp-sdk Class Usage Examples

Public Methods

Method Description
DeleteAssembly ( string assemblyID ) : TransloaditResponse

Tries to delete an assembly by the specified assembly ID.

InvokeAssembly ( IAssemblyBuilder assembly ) : TransloaditResponse

Tries to create the specified assembly on Transloadit. Bored instance is requested at first. If there is one, then it will be used to proceed the request, which can be completed on a bored instance.

Request ( ) : TransloaditRequest

Creates and gets a new TransloaditRequest instance with default attributes

RequestAndExecute ( TransloaditRequest request = null ) : TransloaditResponse

Creates then tries to proceed the specified or a default request, then executes this and gets the response of it.

Transloadit ( string key, string secret ) : System

Creates a new Transloadit object with the passed keys

Private Methods

Method Description
GetSignature ( string str ) : string

Generates and gets the signature of the current request (based on the API Secret code and "params" field)

Method Details

DeleteAssembly() public method

Tries to delete an assembly by the specified assembly ID.
public DeleteAssembly ( string assemblyID ) : TransloaditResponse
assemblyID string ID of the assembly which will be tried to be deleted
return TransloaditResponse

InvokeAssembly() public method

Tries to create the specified assembly on Transloadit. Bored instance is requested at first. If there is one, then it will be used to proceed the request, which can be completed on a bored instance.
public InvokeAssembly ( IAssemblyBuilder assembly ) : TransloaditResponse
assembly IAssemblyBuilder Specified assembly which will be tried to be created. /// Please use TransloaditAssemblyBuilder to create a new assembly
return TransloaditResponse

Request() public method

Creates and gets a new TransloaditRequest instance with default attributes
public Request ( ) : TransloaditRequest
return TransloaditRequest

RequestAndExecute() public method

Creates then tries to proceed the specified or a default request, then executes this and gets the response of it.
public RequestAndExecute ( TransloaditRequest request = null ) : TransloaditResponse
request TransloaditRequest Optional request which will be tried to be executed
return TransloaditResponse

Transloadit() public method

Creates a new Transloadit object with the passed keys
public Transloadit ( string key, string secret ) : System
key string Public authentication key
secret string Secret authorization key
return System