This sample application shows how to make calls to Stormpath from C#, using the RestSharp library.
Some comments for the people that will use this project:
- It is a C# project for Visual Studio.
- The
Main
method is in theProgram
class. - It uses two external libraries: RestSharp (REST/HTTP library) and Json.NET (Json serializer).
- The CSV file,
accounts_to_import.csv
, that contains the accounts to be imported is configured to always be copied to the output directory of this project. - It assumes that the
apiKey.properties
file is in:$HOME/Stormpath/apiKey.properties
- If the
apiKey.properties
file is downloaded in Windows, it will need a new line right before the apiKey.secret section. Looks like the new line doesn't work automatically for Windows. It will look something like:apiKey.id=THEAPIKEYIDVALUEapiKey.secret=THEAPIKEYSECRETVALUE
- If tou want to remove from Stormpath what the application creates, uncomment the last few lines of the
Main
method.
But it should look like:
apiKey.id=THEAPIKEYIDVALUE
apiKey.secret=THEAPIKEYSECRETVALUE