2014-11-03 69 views
0

我以前可以使用IBM SBT getContacts API從perl腳本(使用請求中提供的身份驗證)或Internet瀏覽器(將顯示身份驗證彈出窗口)以及它將返回的記錄了的IBM Connections開發API參考頁面上JSON格式的數據:IBM Social Business Toolkit getContacts API失敗,403 Forbidden

http://www-10.lotus.com/ldd/appdevwiki.nsf/xpAPIViewer.xsp?lookupName=API+Reference#action=openDocument&res_title=Contacts_getContacts_API&content=apicontent&sa=true

然而,最近的API調用已返回403個禁止狀態。如果我想通過瀏覽器使用API​​之前登錄到IBM雲的連接,它被轉換爲:

https://apps.na.collabserv.com/mycontacts/home.html

有誰知道我需要做的就是重新工作的API?

謝謝。

+0

請使用此API ... HTTP:// WWW-10 .lotus.com/ldd/appdevwiki.nsf/xpAPIViewer.xsp?lookupName = API +參考#action = openDocument&res_title = SmartCloud_Contacts&content = apicontent – 2014-11-03 18:01:32

+0

我也在跟蹤API狀態以供使用。 – 2014-11-03 19:11:23

+0

謝謝保羅。當我在瀏覽器中使用它時,此API確實爲我返回數據,並返回錯誤。我仍然需要確保它能夠從我的Perl腳本中運行,但是很有希望。 – 2014-11-05 18:42:45

回答

0

最好的API使用的是 https://apps.na.collabserv.com/lotuslive-shindig-server/social/rest/people/@me/@all?filterBy=type&filterOp=equals&filterValue=contacts&format=json

你會得到下面的項背的列表...

{ 
      "photos": 
      [ 
      ], 
      "telephone": "", 
      "profileUrl": "", 
      "mobilephone": "", 
      "orgs": 
      [ 
       { 
        "value": "CONTACTS", 
        "type": "Source" 
       }, 
       { 
        "value": "Mentorship Expressway", 
        "type": "Org" 
       } 
      ], 
      "website": "", 
      "id": "na.collabserv.com:contact:160000909070", 
      "fax": "", 
      "connectedToId": 2, 
      "addresses": 
      [ 
      ], 
      "emailAddress": "[email protected]", 
      "websites": 
      [ 
      ], 
      "objectId": 160000909070, 
      "type": "FRIEND", 
      "jobtitle": "", 
      "updated": "2014-07-01T16:44:21.000Z", 
      "ims": 
      [ 
      ], 
      "emails": 
      [ 
       { 
        "value": "CONTACTS", 
        "type": "Source" 
       }, 
       { 
        "title": "Primary Email", 
        "email": "[email protected]" 
       } 
      ], 
      "org": 
      { 
       "name": "Mentorship Expressway" 
      }, 
      "displayName": "asdfasdf", 
      "address": "", 
      "companyId": 22285, 
      "phoneNumbers": 
      [ 
       { 
        "value": "CONTACTS", 
        "type": "Source" 
       }, 
       { 
        "title": "MOBILE", 
        "phone": "+ asdfasdf" 
       } 
      ] 
     } 
+0

這看起來應該這樣做,謝謝。請注意,URL中有一個小錯字需要更正:colalbserv vs collabserv。 – 2014-11-05 18:40:45

+0

剛接受這個改變。我修改了生產環境的URL。 – 2014-11-05 18:41:16