-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update README and Code to explain the Environment Variable setup #243
Comments
Hello, can you show us how to set up the send grid key? See support question below: kosullivan Wednesday at 13:19 Avatar Hi there, Please feel free to contribute to this Github issue in order to get an answer from our developers. Best, |
Hello @J242, You will want to setup your environment variables in Azure. Here is some help on how to do that: http://stackoverflow.com/questions/34608769/how-and-where-to-define-an-environment-variable-on-azure Please let me know what resource was most helpful to you. Thanks! |
You are not required to use environment variables correct? The raw string can still be passed in if it lives as a setting in your app. |
@aaron-horst that is correct, for example I store the api key in a cloud configuration file and reference it from there with the CloudConfigurationManager |
Thanks for the info everyone! Can I store the api key in my asp.net project's web.config so that I can test it on my local computer before deploying the tested solution to Azure? |
@J242 Yes, so long as your able to retrieve the string it can be stored anywhere really. |
Cool! I'll probably try both methods. I'll use web.config locally and environment on Azure. |
Please see #473 (comment) |
Update deprecated Heroku command
Issue Summary
This explanation should be in the README and as a comment in the example code:
https://github.com/sendgrid/sendgrid-csharp/blob/master/CONTRIBUTING.md#environment-variables
Also, show an example of retrieving the API Key from
web.config
Technical details:
The text was updated successfully, but these errors were encountered: