Created
June 22, 2011 19:22
-
-
Save nelsonlaquet/1040907 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<configSections> | |
</configSections> | |
<appSettings> | |
<add key="AccessToken" value="" /> | |
<add key="AccessTokenSecret" value="" /> | |
<add key="RequestToken" value="" /> | |
</appSettings> | |
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TwitterSettings | |
{ | |
public string AccessToken { get; set; } | |
public string AccessTokenSecret { get; set; } | |
public string RequestToken { get; set; } | |
public TwitterSettings() | |
{ | |
AccessToken = ConfigurationManager.AppSettings["AccessToken"]; | |
AccessTokenSecret = ConfigurationManager.AppSettings["AccessTokenSecret"]; | |
RequestToken = ConfigurationManager.AppSettings["RequestToken"]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment