-
Notifications
You must be signed in to change notification settings - Fork 3
/
Configuration.cs
executable file
·54 lines (53 loc) · 1.49 KB
/
Configuration.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RightSignature
{
public class Configuration
{
public static string Get(string key, string defaultValue = "")
{
string retVal = ConfigurationManager.AppSettings[key];
return retVal ?? defaultValue;
}
public static string BaseUrl
{
get { return (Get("baseUrl")); }
}
public static string AuthType
{
get { return (Get("authType")); }
}
public static string RequestTokenUrl
{
get { return (Get("baseUrl") + "/oauth/request_token"); }
}
public static string AuthorizeUrl
{
get { return (Get("baseUrl") + "/oauth/authorize"); }
}
public static string AccessTokenUrl
{
get { return (Get("baseUrl") + "/oauth/access_token"); }
}
public static string CallbackUrl
{
get { return (Get("callback_url")); }
}
public static string ConsumerKey
{
get { return (Get("consumer_key")); }
}
public static string ConsumerSecret
{
get { return (Get("consumer_secret")); }
}
public static string ApiToken
{
get { return (Get("api-token")); }
}
}
}