MCPcopy Create free account
hub / github.com/aptabase/aptabase / CreateApp

Method CreateApp

tests/IntegrationTests/Clients/AccountClient.cs:27–35  ·  view source on GitHub ↗
(string name)

Source from the content-addressed store, hash-verified

25 }
26
27 public async Task<Application> CreateApp(string name)
28 {
29 var response = await _client.PostAsJsonAsync("/api/_apps", new { name });
30 response.StatusCode.Should().Be(HttpStatusCode.OK);
31
32 var apps = await _client.GetFromJsonAsync<Application[]>("/api/_apps");
33 var app = apps?.FirstOrDefault(x => x.Name == name);
34 return app ?? throw new Exception("No app found");
35 }
36
37 public async Task<HttpResponseMessage> GetKeyMetrics(string appId, string period)
38 {

Calls

no outgoing calls