Skip to content

Commit

Permalink
Fix apiKey, proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
sominola committed Apr 15, 2021
1 parent e3fafd3 commit 7e1a257
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions OpenDotaApi/OpenDota.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using System.Net;

namespace OpenDotaApi
{
using Utilities;
Expand Down Expand Up @@ -29,9 +31,9 @@ namespace OpenDotaApi
using Api.Constants;
public class OpenDota
{
public OpenDota()
public OpenDota(string apiKey = null, IWebProxy proxy = null)
{
var request = new RequestHandler();
var request = new RequestHandler(apiKey,proxy);
Matches = new MatchesEndpoint(request);
PlayersByRank = new PlayersByRankEndpoint(request);
Player = new PlayerEndpoint(request);
Expand Down

0 comments on commit 7e1a257

Please sign in to comment.