We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 456e9b4 commit 5d4a395Copy full SHA for 5d4a395
Git.hub/Client.cs
@@ -11,9 +11,18 @@ public class Client
11
{
12
private RestClient client;
13
14
- public Client()
+ /// <summary>
15
+ /// Creates a new client instance for github.com
16
+ /// </summary>
17
+ public Client() : this("https://api.github.com") { }
18
+
19
20
+ /// Creates a new client instance
21
22
+ /// <param name="apiEndpoint">the host to connect to, e.g. 'https://api.github.com'</param>
23
+ public Client(string apiEndpoint)
24
- client = new RestClient("https://api.github.com");
25
+ client = new RestClient(apiEndpoint);
26
client.UserAgent = "mabako/Git.hub";
27
}
28
0 commit comments