<commit_before>.. image:: https://d2xtrvzo9unrru.cloudfront.net/brands/smartfile/logo.png
   :alt: SmartFile

A `SmartFile`_ Open Source SDK. Developer information: https://www.smartfile.com/developer/


SmartFile API Client (C#)
=========================
This is a fully working API client for SmartFile. It allows you to interact with all objects within the SmartFile system via the REST API. This client library can be used as-is for your integration projects.

Installation
--------------
via source code / GitHub.

::

    $ git clone https://github.com/smartfile/client-csharp.git smartfile

More information is available at `GitHub <https://github.com/smartfile/client-csharp>`_

Upload File
--------------
.. code:: csharp

	using RestSharp;
	using RestSharp.Authenticators;

	namespace SmartFile
	{
		class MainClass
		{
			public static int Main(string[] args)
			{
				// Setup new SmartFile client
				var client = new RestClient("https://app.smartfile.com/api/2/");
				client.Authenticator = new HttpBasicAuthenticator("**********", "**********");

				// Upload
				var request = Client.Upload("pathToFile");

				IRestResponse response = client.Execute(request);
				var content = response.Content; // raw content as string

				return 0;
			}
		}
	}<commit_msg>update README to reflect changes made to Upload method<commit_after>.. image:: https://d2xtrvzo9unrru.cloudfront.net/brands/smartfile/logo.png
   :alt: SmartFile

A `SmartFile`_ Open Source SDK. Developer information: https://www.smartfile.com/developer/


SmartFile API Client (C#)
=========================
This is a fully working API client for SmartFile. It allows you to interact with all objects within the SmartFile system via the REST API. This client library can be used as-is for your integration projects.

Installation
--------------
via source code / GitHub.

::

    $ git clone https://github.com/smartfile/client-csharp.git smartfile

More information is available at `GitHub <https://github.com/smartfile/client-csharp>`_

Upload File
--------------
.. code:: csharp

	using RestSharp;
	using RestSharp.Authenticators;

	namespace SmartFile
	{
		class MainClass
		{
			public static int Main(string[] args)
			{
				// Setup new SmartFile client
				var client = new RestClient("https://app.smartfile.com/api/2/");
				client.Authenticator = new HttpBasicAuthenticator("**********", "**********");

				// Upload
				var resp = Client.Upload(client, "pathToFile");

                return 0;
			}
		}
	}


You can also upload using the GetUploadRequest method, if you want to further customize your request.
--------------
.. code:: csharp

	using RestSharp;
	using RestSharp.Authenticators;

	namespace SmartFile
	{
		class MainClass
		{
			public static int Main(string[] args)
			{
				// Setup new SmartFile client
				var client = new RestClient("https://app.smartfile.com/api/2/");
				client.Authenticator = new HttpBasicAuthenticator("**********", "**********");

				// Upload
				var request = Client.GetUploadRequest("pathToFile");
				var response = client.Execute(request);

                return 0;
			}
		}
	}
{'fraction_non_alphanumeric': 0.1528846153846154, 'fraction_numerical': 0.003205128205128205, 'mean_word_length': 3.2175675675675675, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 11, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '699289', 'n_tokens_mistral': 1026, 'n_tokens_neox': 879, 'n_words': 276}