IBM社交业务工具包getContacts API失败,403 Forbidden

时间:2014-11-03 17:08:31

标签: ibm-sbt

我曾经能够从perl脚本(在请求中提供身份验证)或Internet浏览器(将出现身份验证弹出窗口)中使用IBM SBT getContacts API,并且它将以JSON格式返回数据,如IBM Connections Developers API参考页面:

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 Connections Cloud,则会转换为:

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

有谁知道我需要做些什么才能让API再次运行?

感谢。

1 个答案:

答案 0 :(得分: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": 201238541234,
           "addresses":
           [
           ],
           "emailAddress": "asdfasdf@us.ibm.com",
           "websites":
           [
           ],
           "objectId": 160000909070,
           "type": "FRIEND",
           "jobtitle": "",
           "updated": "2014-07-01T16:44:21.000Z",
           "ims":
           [
           ],
           "emails":
           [
               {
                   "value": "CONTACTS",
                   "type": "Source"
               },
               {
                   "title": "Primary Email",
                   "email": "asdfasdf@us.ibm.com"
               }
           ],
           "org":
           {
               "name": "Mentorship Expressway"
           },
           "displayName": "asdfasdf",
           "address": "",
           "companyId": 22285,
           "phoneNumbers":
           [
               {
                   "value": "CONTACTS",
                   "type": "Source"
               },
               {
                   "title": "MOBILE",
                   "phone": "+ asdfasdf"
               }
           ]
       }