Lists the site's placements, grouped by zone, each with the invocation-code types the caller may generate for it.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/sites/{siteId}/invocation-codes.do
Lists the site's placements, grouped by zone, each with the invocation-code types the caller may generate for it. Deleted zones and placements are left out. The types are those the placement type offers minus those the caller lacks the per-type invocation-code permission for; fetch a code with GET /rest-api/placements/{placementId}/invocation-code. Requires VIEW access to the site's inventory (ALL, or SHARED with a share on the site).
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/sites/5001/invocation-codes.do?limit=50&start=0");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());