public Entry Get(Guid id, string language = null, string version = null)
{
}
C#
1
2
3
4
5
6
7
8
9
10
11
12
13
using Zengenti.Contensis.Management;
// Create a client
var client = ManagementClient.Create();
// Retrieve the relevant project
var movieDbProject = client.Projects.Get("moviedb");
// Mimic a guid id value
var movieGuid = Guid.Parse("2c95e478-289d-4d28-8159-02a3f8de5fb4");
// Get the french variation of the movie entry
Entry movie = movieDbProject.Entries.Get(movieGuid, "fr-fr");
Get by string id
C#
1
2
3
public Entry Get(string id, string language = null, string version = null)
{
}
C#
1
2
3
4
5
6
7
8
9
10
using Zengenti.Contensis.Management;
// Create a client
var client = ManagementClient.Create();
// Retrieve the relevant project
var movieDbProject = client.Projects.Get("moviedb");
// Get the french variation of the movie entry
Entry movie = movieDbProject.Entries.Get("456e5f2a-a1cf-4520-a46c-e5f22ed299e8", "fr-fr");
Get by Guid id async
C#
1
2
3
public async Task<Entry> GetAsync(Guid id, string language = null, string version = null)
{
}
C#
1
2
3
4
5
6
7
8
9
10
11
12
13
using Zengenti.Contensis.Management;
// Create a client
var client = ManagementClient.Create();
// Retrieve the relevant project
var movieDbProject = client.Projects.Get("moviedb");
// Mimic a guid id value
var movieGuid = Guid.Parse("2c95e478-289d-4d28-8159-02a3f8de5fb4");
// Get the french variation of the movie entry asynchronously
Entry movie = await movieDbProject.Entries.GetAsync(movieGuid, "fr-fr");
Get by string id async
C#
1
2
3
public async Task<Entry> GetAsync(string id, string language = null, string version = null)
{
}
C#
1
2
3
4
5
6
7
8
9
10
using Zengenti.Contensis.Management;
// Create a client
var client = ManagementClient.Create();
// Retrieve the relevant project
var movieDbProject = client.Projects.Get("moviedb");
// Get the french variation of the movie entry asynchronously
Entry movie = await movieDbProject.Entries.GetAsync("456e5f2a-a1cf-4520-a46c-e5f22ed299e8", "fr-fr");