duanjing9339 2014-10-16 12:24
浏览 55

使用PHP与TFS交互

I need to develop an module that interact with TFS for our internal office application, but the project is in php, i have done searching a lot, but could not find a sdk or api in php that could do the following.

  1. listing the work items for a tfs user
  2. creating / modifying work items.
  3. View work item details and get attachments
  4. modifying work items

can anybody suggest an api / sdk that could do the above said actions,

note: we are not interacting with Visual Studio Online, we are using hosted tfs in our own premises. thanks in advance.

  • 写回答

1条回答 默认 最新

  • douxiong2999 2014-10-21 06:53
    关注

    Use the Java SDK for TFS and the PHP/Java Bridge and then try something like this (psuedo code only)

    <?php  
    require_once("java/Java.inc");
    $tfsTPC=new java("com.microsoft.tfs.core.TFSTeamProjectCollection","http://tfs:8080/tfs/DefaultCollection");  
    $projects = $tfsTPC->getWorkItemClient()->getProjects();
    ?>
    

    P.S. My PHP knowledge died a long time ago, so I'm not sure if the sample code is quite right, but hopefully you get the idea.

    Also, even though it's the Java SDK you're using you should be able to follow all the C# samples since the SDK methods are almost identical between the .NET and Java SDKs

    评论

报告相同问题?

悬赏问题

  • ¥15 chaquopy python 安卓
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 有没有帮写代码做实验仿真的
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥30 vmware exsi重置后登不上
  • ¥15 易盾点选的cb参数怎么解啊
  • ¥15 MATLAB运行显示错误,如何解决?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题