Created
May 28, 2013 22:27
-
-
Save bhameyie/5666641 to your computer and use it in GitHub Desktop.
pivotaltrackerdotnet sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Getting the authentication token | |
var token = AuthenticationService.Authenticate(Constants.Username, Constants.Password); | |
//With the authentication token, retrieving those stories is trivial | |
var service = new StoryService(token); | |
var stories= service.GetCurrentStories(projectId); | |
//This will return a list of Story objects with their associated tasks. If you would prefer getting the Iterations, which contains a list of stories *without their associated tasks*, that is easy as well. | |
var iterations = service.GetCurrentIterations(projectId); | |
//Say I wanted to retrieve all bugs associated with a particular label. | |
var stories = service.GetAllStoriesMatchingFilter(projectId, FilteringCriteria.FilterBy.Label("my label").Type(StoryType.Bug)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment