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
Mainmethod is in theProgramclass. - 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.propertiesfile is in:$HOME/Stormpath/apiKey.properties - If the
apiKey.propertiesfile 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
Mainmethod.
But it should look like:
apiKey.id=THEAPIKEYIDVALUE
apiKey.secret=THEAPIKEYSECRETVALUE