public void Init() { Dictionary <string, string> apiKeys = JsonConvert.DeserializeObject <Dictionary <string, string> >( File.ReadAllText("NamelyApiKeys.txt") ); this.reportGuid = apiKeys["NamelyReportGuid"]; string apiToken = apiKeys["NamelyToken"]; string clientName = apiKeys["NamelyClientName"]; this.client = new NamelyApiClient(apiToken, clientName); }
public async Task GetReportTest() { var api = new NamelyApiClient(); var reportResult = await api.GetReport(this.ReportGuid); }