c# - Getting people across projects -


i using bcxapi .net , trying list of people project doesn't seem available in api.

i found documentation shows it's possible:

get /projects/#{project_id}/people.xml 

but hoping not have break pattern , stick using api.

can validate suspicion can't done bcxapi?

i have been trying piece bits , pieces different articels , i'm trying approach:

var basecampprojects = s.getprojects(a.id);                  foreach (var proj in basecampprojects)                 {                     var client = new restclient()                     {                         baseurl = new uri("https://basecamp.com/" + a.id + "/api/v1/projects/" + proj.id + "/people.json/")                     };                      client.authenticator = new oauth2authorizationrequestheaderauthenticator(accesstoken.access_token);                      var request = new restrequest(method.get);                     request.requestformat = dataformat.json;                     request.addheader("user-agent", "picodev (trevor@l9digitalstrategies.com)");                     request.addheader("content-type", "application/json");                     request.addheader("charset", "utf - 8");                     request.addheader("authorization", accesstoken.access_token);                     request.addparameter("client_id", clientid);                     request.addparameter("client_secret", clientsecret);                     var result = client.execute(request);                      string jsonresult = result.content;                  } 

but getting "not found" result. not available anymore or making mistake in call?

ok found out possible using bcxapi, here how implemented api documentation here

var accounts = s.getaccounts();         foreach (var in accounts.accounts)         {             try             {                 var basecampprojects = s.getprojects(a.id);                 foreach (var proj in basecampprojects)                 {                     var accesses = s.getaccessesforproject(a.id, proj.id);                 }             }             catch (exception ex)             {              }         } 


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -