Filtering API requests
|
|
Trying to build out a script to help keep my team on track and keep my boss off our butts. I want to be able to get commits newer than a certain time, then my script will parse those commits and check to see that each commit has a ticket number in it. How can I build these query conditions? I am not seeing a document with those in it, if there is one can someone clue me in? Example query - |
|
|
Each resource available from the Unfuddle API has its own set of query string parameters that will aid in filtering output. Some have many parameters (like ticket reports) and some have very few (like changesets). There is currently no way to filter the /changesets resource with a “conditions_string” as you present in your example. To best solve your problem, I would write a script that would query for recent project activity with a start date. This will return all activity on the project, which your script can then filter to only see commit information. An example API URL would be as follows: “https://mysubdomain.unfuddle.com/api/v1/projects/1/activity?start_date=2009/10/23” For more information about the project activity resource, please see: http://unfuddle.com/docs/api/projects#project_activity |
