Skip to main content

List

C#
1
2
3
public PagedList<Entry> List(string contentTypeId = null, string language = null, PageOptions pageOptions = null, IList<string> order = null) { }
C#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using Zengenti.Contensis.Management; using Zengenti.Data; // Create an API client var client = ManagementClient.Create(); // Retrieve the relevant project var movieDbProject = client.Projects.Get("moviedb"); // Get movies with default paging options in the default language var movies = movieDbProject.Entries.List("movie"); // Get movies with default paging options in French var movies = movieDbProject.Entries.List("movie", "fr-FR"); // Get movies with paging options var movies = movieDbProject.Entries.List("movie", pageOptions: new PageOptions(0,10)); // Get actors with default paging options and a specified order var movies = movieDbProject.Entries.List("actor", order: new [] { "name", "-dateOfBirth"});

List async

C#
1
2
3
public async Task<PagedList<Entry>> List(string contentTypeId = null, string language = null, PageOptions pageOptions = null, IList<string> order = null) { }
C#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using Zengenti.Contensis.Management; using Zengenti.Data; // Create an API client var client = ManagementClient.Create(); // Retrieve the relevant project var movieDbProject = client.Projects.Get("moviedb"); // Get movies with default paging options in the default language var movies = await movieDbProject.Entries.ListAsync("movie"); // Get movies with default paging options in French var movies = await movieDbProject.Entries.ListAsync("movie", "fr-FR"); // Get movies with paging options var movies = await movieDbProject.Entries.ListAsync("movie", pageOptions: new PageOptions(0,10)); // Get actors with default paging options and a specified order var movies = await movieDbProject.Entries.ListAsync("actor", order: new [] { "name", "-dateOfBirth" });

Still need help?

New support request