2014-11-03 6 views
0

필자는 IBM SBT getContacts API (요청에 제공된 인증 포함) 또는 인터넷 브라우저 (인증 팝업이 나타남)를 통해 IBM SBT getContacts API를 사용할 수 있었지만 최근에, 그러나, API 호출이 403 개 금지 상태를 반환하고있다IBM Social Business Toolkit getContacts API가 403 금지됨으로 실패 함

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

다음 IBM 연결 개발자 API 참조 페이지에 설명 된대로 JSON 형식의 데이터를 반환합니다.

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

사람이 내가 다시 일할 수있는 API를 얻기 위해 무엇을해야하는지 알고 있습니까 : 나는 브라우저를 통해 API를 사용하려고 시도하기 전에 IBM 연결 클라우드에 로그인하면, 그것은으로 변환된다?

감사합니다.

+0

이 API ... HTTP를 사용하십시오 : // WWW-10 .lotus.com/ldd/appdevwiki.nsf/xpAPIViewer.xsp? lookupName = API + 참조 # action = openDocument & res_title = SmartCloud_Contacts & content = apicontent –

+0

또한 API 상태에 대한 후속 조치를 취하고 있습니다. –

+0

폴 감사합니다. 이 API는 브라우저에서 사용할 때 오류를 반환하는 대신 나를 위해 데이터를 반환합니다. 나는 여전히 펄 스크립트에서 작동 할 것이지만 희망적이다. –

답변

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. –

+0

방금 ​​변경 사항을 수락했습니다. 프로덕션 환경의 URL을 수정했습니다. –