GetProjectListByCreator
Description
Get info about your projects by creator. Token-based, ie. you get pages of projects at a time along with a token that can be sent in the next request to get the next projects.
Signature
ProjectListResultSet GetProjectListByCreatedDate(string key, ProjectType projectType, bool allProjects, ProjectListToken token, int topN, DateTime createdFrom, DateTime createdTo)
Parameters
Name | Data Type | Description |
---|---|---|
key |
string required |
The authentication key |
projectType |
ProjectType required |
Production or Test |
allProjects |
bool required |
true means all your projects, false means favorites |
token |
ProjectListToken optional |
Use null on initial call, when iterating use the token from the result |
topN |
int optional |
Will return the top N results. If token.LastId is set, the results will be relative to that id. |
createdFrom |
DateTime required |
Created from date. Inclusive |
createdTo |
DateTime required |
Created to date. Inclusive |
Example
var projectNames = new ArrayList();
ProjectListToken token = null;
bool atEnd = false;
while (!atEnd)
{
var plr = client.GetProjectListByCreatedDate(key,ProjectType.ProjectAndPanel,false, token, 10, new DateTime("2010-01-01"), DateTime.Now);
foreach (Project p in plr.List.Projects)
projectNames.Add(p.Name);
token = plr.Token;
atEnd = plr.Token.AtEnd;
}