-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
František Záhora
authored and
František Záhora
committed
Jul 13, 2024
1 parent
8f8290c
commit dc695f3
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// DocSection: cm_api_v2_get_web_spotlight_status | ||
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net | ||
using Kontent.Ai.Management; | ||
|
||
var client = new ManagementClient(new ManagementOptions | ||
{ | ||
ApiKey = "<YOUR_API_KEY>", | ||
ProjectId = "<YOUR_PROJECT_ID>" | ||
}); | ||
|
||
var response = await client.GetWebSpotlightStatusAsync(); | ||
// EndDocSection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// DocSection: cm_api_v2_put_web_spotlight_activate | ||
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net | ||
using Kontent.Ai.Management; | ||
|
||
var client = new ManagementClient(new ManagementOptions | ||
{ | ||
ApiKey = "<YOUR_API_KEY>", | ||
ProjectId = "<YOUR_PROJECT_ID>" | ||
}); | ||
|
||
var reference = Reference.ById(Guid.Parse("6291c693-f6e4-4a6b-ac67-5c31c32f9388")); | ||
// var reference = Reference.ById("my_web_root_type"); | ||
|
||
var model = new WebSpotlightActivateModel() | ||
{ | ||
RootType = reference | ||
} | ||
|
||
var response = await client.ActivateWebSpotlightAsync(model); | ||
// EndDocSection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// DocSection: cm_api_v2_put_web_spotlight_deactivate | ||
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net | ||
using Kontent.Ai.Management; | ||
|
||
var client = new ManagementClient(new ManagementOptions | ||
{ | ||
ApiKey = "<YOUR_API_KEY>", | ||
ProjectId = "<YOUR_PROJECT_ID>" | ||
}); | ||
|
||
var response = await client.DeactivateWebSpotlightAsync(); | ||
// EndDocSection |