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 GetProjectListByCreator(string key, ProjectType projectType, bool allProjects, ProjectListToken token, int topN, string createdByLastName)
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. |
createdByLastName |
string optional |
Last name of the creator. Case sensitive |
Example
var projectNames = new ArrayList();
ProjectListToken token = null;
bool atEnd = false;
while (!atEnd)
{
var plr = client.GetProjectListByCreator(key,ProjectType.ProjectAndPanel,false, token, 10, "lastName");
foreach (Project p in plr.List.Projects)
projectNames.Add(p.Name);
token = plr.Token;
atEnd = plr.Token.AtEnd;
}