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);
        }
Ejemplo n.º 2
0
 public async Task GetReportTest()
 {
     var api          = new NamelyApiClient();
     var reportResult = await api.GetReport(this.ReportGuid);
 }