Get by Guid id
1
2
3
public Entry Get(Guid id, string language = null, int linkDepth = 0, IList<string> fields = null)
{
}
1
2
3
4
5
// Create a client
var client = ContensisClient.Create();
// Get the french variation of the movie entry, returning just the title and resolving links to a depth of 3
Entry movie = client.Entries.Get(movieGuid, "fr-fr", 3, new[] {"title"});
Get typed model by Guid id
1
2
3
public T Get<T>(Guid id, string language = null, int linkDepth = 0, IList<string> fields = null) where T: class
{
}
1
2
3
4
5
6
public class Movie
{
public string Title { get; set; }
public DateTime DateOfRelease { get; set; }
}
1
2
3
4
5
// Create a client
var client = ContensisClient.Create();
// Get the french variation of the movie entry, returning just the title and resolving links to a depth of 3
Movie movie = client.Entries.Get<Movie>(movieGuid, "fr-fr", 3, new[] {"title"});
Get by string id
1
2
3
public Entry Get(string id, string languageCode = null, int linkDepth = 0, IList<string> fields = null)
{
}
1
2
3
4
5
// Create a client
var client = ContensisClient.Create();
// Get the french variation of the movie entry, returning just the title and resolving links to a depth of 3
Entry movie = client.Entries.Get("456e5f2a-a1cf-4520-a46c-e5f22ed299e8", "fr-fr", 3, new[] {"title"});
Get typed model by string id
1
2
3
public T Get<T>(string id, string languageCode = null, int linkDepth = 0, IList<string> fields = null) where T: class
{
}
1
2
3
4
5
6
public class Movie
{
public string Title { get; set; }
public DateTime DateOfRelease { get; set; }
}
1
2
3
4
5
// Create a client
var client = ContensisClient.Create();
// Get the french variation of the movie entry, returning just the title and resolving links to a depth of 3
Movie movie = client.Entries.Get<Movie>("456e5f2a-a1cf-4520-a46c-e5f22ed299e8", "fr-fr", 3, new[] {"title"});
Get by Guid id async
1
2
3
public async Task<Entry> GetAsync(Guid id, string language = null, int linkDepth = 0, IList<string> fields = null)
{
}
1
2
3
4
5
// Create a client
var client = ContensisClient.Create();
// Get the french variation of the movie entry, returning just the title and resolving links to a depth of 3
Entry movie = await client.Entries.GetAsync(movieGuid, "fr-fr", 3, new[] {"title"});
Get typed model by Guid id async
1
2
3
public async Task<T> GetAsync<T>(Guid id, string language = null, int linkDepth = 0, IList<string> fields = null) where T: class
{
}
1
2
3
4
5
6
public class Movie
{
public string Title { get; set; }
public DateTime DateOfRelease { get; set; }
}
1
2
3
4
5
// Create a client
var client = ContensisClient.Create();
// Get the french variation of the movie entry as a Movie type, returning just the title and resolving links to a depth of 3
Movie movie = await client.Entries.GetAsync<Movie>(movieGuid, "fr-fr", 3, new[] {"title"});
Get by string id async
1
2
3
public async Task<Entry> GetAsync(string id, string language = null, int linkDepth = 0, IList<string> fields = null)
{
}
1
2
3
4
5
// Create a client
var client = ContensisClient.Create();
// Get the french variation of the movie entry, returning just the title and resolving links to a depth of 3
Entry movie = await client.Entries.GetAsync("456e5f2a-a1cf-4520-a46c-e5f22ed299e8", "fr-fr", 3, new[] {"title"});
Get typed model by string id async
1
2
3
public async Task<T> GetAsync<T>(string id, string language = null, int linkDepth = 0, IList<string> fields = null) where T: class
{
}
1
2
3
4
5
6
public class Movie
{
public string Title { get; set; }
public DateTime DateOfRelease { get; set; }
}
1
2
3
4
5
// Create a client
var client = ContensisClient.Create();
// Get the french variation of the movie entry as a Movie type, returning just the title and resolving links to a depth of 3
Movie movie = await client.Entries.GetAsync<Movie>("456e5f2a-a1cf-4520-a46c-e5f22ed299e8", "fr-fr", 3, new[] {"title"});