Retriving all the projects? not just for one specific user...
|
|
For some reason when I log in using my Username and Password for my companies basecamp the project/list is retriving all the projects for my company. Including the projects I am not a part of. How do I narrow this. A user should not be able to see the projects he or she is not a part of. |
|
|
Sorry, I forgot to include more information: I am developing in the .Net framework. I attach my user login as a header and then pass it the command using the request as a checker. It works but returns projects my company has that have not been added to my list of current projects. |
|
|
John, When you log in via the normal basecamp web interface, on the first tab (Dashboard), do you see all of these same projects on the right-hand side of the screen, or only the projects you are interested in? What exactly do you mean when you say projects that you a “a part of”? I think (and I could be wrong) that the API will only return those projects that you have access to. But you may be thinking of a smaller list (maybe only the projects where Todos or Milestones are assigned to you?) [advertisement removed – admin] |
|
|
I actually did solve my issue a few days after posting. What I meant by “projects I am a part of” was that I was seeing projects that I had not seen before/didn’t remember. This was due to, what I believe, a basecamp API error. When I make a call to retrieve a list of projects I narrow it down with <find>active</find>. The only issue with this would be the fact that it is not narrowing down. I received all the projects(even the inactive and archived ones). My list of 34 projects rocketed to 75. I cannot figure out why It would still be doing that. I managed to patch it with an if statement but to minimize the retrieval process I would appreciate any feedback as to why it would not be working. I can post an example of my code if that would help the debug process. Thanks! |
|
|
I’m not aware of any “find” filtering – the API page doesn’t mention it (http://developer.37signals.com/basecamp/general.shtml). AFAIK, the only way is to get the whole list and then filter it in your code – that’s what we do. —Peter Rust |
