# ADLS Azure Library

Business processes often involves storing file/data in Azure. ADLS library helps the developers to create bots using Azure based functions. Using ADLS library developers can effortlessly perform various operations such as create a file/append&flush data/delete a file in ADLS etc

# Method: GetBearerToken(System.String, System.String,System.String,System.String,System.String,System.String)

To get the Bearer Token to authenticate the rest of the process

Parameters:

Fields
authurl Authentication URL
content_type The Content-Type entity header is used to indicate the media type of the resource
client_id A GUID that was assigned to your client application during registration, also known as an application ID
client-secret Same secret/key value that generated earlier during client registration
scope scopes provide a way to limit the amount of access that is granted to an access token
grant_type Refers to the way an application gets an access token

# Method: PutFileIntoAdls(System.Object, System.String, System.String, System.String, System.String)

To create a file in Azure

Parameters:

Fields
accesstoken security credentials for a login session and identifies the user
storageaccountname Account Name
filesystem Blob containers name
folderpath Path where file has to be placed
filenamewithextn file name along with extension

# Method: AppendFlushDataLinebyLine(System.Object, System.String, System.String, System.String, System.String, System.String)

To push the data, line by line into a file in Azure

Parameters:

Fields
accesstoken security credentials for a login session and identifies the user
storageaccountname Account Name
filesystem Blob containers name
folderpath Path where file has to be placed
filenamewithextn file name along with extension
filetobecopied The complete path of the file which has to be copied in Azure

# Method: PushMultipleFileasASingleFile(System.Object, System.String, System.String, System.String, System.String, System.String)

To push multiple files as single file into Azure

Parameters:

Fields
accesstoken security credentials for a login session and identifies the user
storageaccountname Account Name
filesystem Blob containers name
folderpath Path where file has to be placed
filenamewithextn File name along with extension
Directorypath Provide the path where you have list of files

# Method: AppendFlushData(System.Object, System.String, System.String, System.String, System.String, System.String)

To push file into Azure

Parameters:

Fields
accesstoken security credentials for a login session and identifies the user
storageaccountname Account Name
filesystem Blob containers name
folderpath Path where file has to be placed
filenamewithextn File name along with extension
filetobecopied The complete path of the file which has to be copied in Azure

# Method: AppendFlushDataAsString(System.Object, System.String, System.String, System.String, System.String, System.Text.StringBuilder)

To push file into Azure

Parameters:

Fields
accesstoken security credentials for a login session and identifies the user
storageaccountname Account Name
filesystem Blob containers name
folderpath Path where file has to be placed
filenamewithextn File name along with extension
ToUpload Pass a stringbuilder which you wish to push into Azure