XycloneDesigns.Apis.MunicipalMoney
2.1.0
dotnet add package XycloneDesigns.Apis.MunicipalMoney --version 2.1.0
NuGet\Install-Package XycloneDesigns.Apis.MunicipalMoney -Version 2.1.0
<PackageReference Include="XycloneDesigns.Apis.MunicipalMoney" Version="2.1.0" />
<PackageVersion Include="XycloneDesigns.Apis.MunicipalMoney" Version="2.1.0" />
<PackageReference Include="XycloneDesigns.Apis.MunicipalMoney" />
paket add XycloneDesigns.Apis.MunicipalMoney --version 2.1.0
#r "nuget: XycloneDesigns.Apis.MunicipalMoney, 2.1.0"
#:package XycloneDesigns.Apis.MunicipalMoney@2.1.0
#addin nuget:?package=XycloneDesigns.Apis.MunicipalMoney&version=2.1.0
#tool nuget:?package=XycloneDesigns.Apis.MunicipalMoney&version=2.1.0
Municipal Money API Wrapper
A simple wrapper to the Municipal Money API.
Include the library and then make calls to the various API end points.
Usage
<pre><code class='language-cs'> [CubeType].Request request = new [CubeType].Request(<args>) { ... };
HttpClient httpclient = new HttpClient(); using HttpRequestMessage httprequestmessage = request.ToHttpRequestMessage(); using HttpResponseMessage httpresponsemessage = await httpclient.SendAsync(httprequestmessage);
string json = await httpresponsemessage.Content.ReadAsStringAsync();
// System.Text.Json [CubeType].Response response = JsonSerializer.Deserialize<[CubeType]>(json);
// Newtonsoft [CubeType].Response response = JObject.Parse(json).ToObject<[CubeType].Response>();
</code></pre>
Requests
Extra information on additional params found here
CubeAggregate.Request
List Cubes
<code>https://municipaldata.treasury.gov.za/api/cubes</code> <pre> public class CubeAggregate.Request { public Request (string cubename);
public string CubeName { get; set; }
public List<string>? Aggregates { get; set; }
public Dictionary<string, object>? Cut { get; set; }
public List<string>? Drilldown { get; set; }
public string? Format { get; set; }
public int? Page { get; set; }
public int? PageSize { get; set; }
public Dictionary<string, bool>? Order { get; set; }
} </pre>
Cube Model
<code>https://municipaldata.treasury.gov.za/api/cubes/[cubename]/model</code> <pre> public class CubeModel.Request { public Request (string cubename);
public string CubeName { get; set; }
} </pre>
List Facts
<code>https://municipaldata.treasury.gov.za/api/cubes/[cubename]/facts</code> <pre> public class CubeFacts.Request { public Request (string cubename);
public string CubeName { get; set; }
public Dictionary<string, object>? Cut { get; set; }
public string? Format { get; set; }
public int? Page { get; set; }
public int? PageSize { get; set; }
public Dictionary<string, bool>? Order { get; set; }
} </pre>
List Members
<code>https://municipaldata.treasury.gov.za/api/cubes/[cubename]/members/[cubemembername]</code> <pre> public class CubeMembersDemarcation.Request { public Request (string cubename, string cubemembername);
public string CubeName { get; set; }
public string CubeMemberName { get; set; }
public Dictionary<string, object>? Cut { get; set; }
public string? Format { get; set; }
public int? Page { get; set; }
public int? PageSize { get; set; }
public Dictionary<string, bool>? Order { get; set; }
} </pre>
Aggregating Facts
<code>https://municipaldata.treasury.gov.za/api/cubes/[cubename]/aggregate</code> <pre> public class CubeAggregate.Request { public Request (string cubename);
public string CubeName { get; set; }
public List<string>? Aggregates { get; set; }
public Dictionary<string, object>? Cut { get; set; }
public List<string>? Drilldown { get; set; }
public string? Format { get; set; }
public int? Page { get; set; }
public int? PageSize { get; set; }
public Dictionary<string, bool>? Order { get; set; }
} </pre>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- XycloneDesigns.Apis.General (>= 2.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Updates