HSBC - Send Get v1/groups - Error 401

Hi, I'm sending a Get to obtain the group id. /v1/groups with a Java Client using HttpClient api.
This is the log I'm sending:
2017/05/03 14:43:14:823 ART [DEBUG] ConnectMethod - CONNECT status code 200
2017/05/03 14:43:14:823 ART [DEBUG] HttpConnection - Secure tunnel to rms-world-check-one-api-pilot.thomsonreuters.com:443
2017/05/03 14:43:14:952 ART [DEBUG] header - >> "GET /v1/groups HTTP/1.1[\r][\n]"
2017/05/03 14:43:14:952 ART [DEBUG] HttpMethodBase - Adding Host request header
2017/05/03 14:43:14:953 ART [DEBUG] header - >> "Date: Wed, 03 May 2017 17:43:14 GMT[\r][\n]"
2017/05/03 14:43:14:953 ART [DEBUG] header - >> "Authorization: Signature keyId="509f9b54-4182-4b56-9284-51020310f2ba",algorithm="hmac-sha256",headers="(request-target) host date",signature="XEEbWlK8hkQ0T98/d1tPZSQWxdLYqLlIa5hkrc0KFSk="[\r][\n]"
2017/05/03 14:43:14:953 ART [DEBUG] header - >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
2017/05/03 14:43:14:953 ART [DEBUG] header - >> "Host: rms-world-check-one-api-pilot.thomsonreuters.com[\r][\n]"
2017/05/03 14:43:14:953 ART [DEBUG] header - >> "[\r][\n]"
2017/05/03 14:43:16:910 ART [DEBUG] header - << "HTTP/1.1 401 Unauthorized[\r][\n]"
2017/05/03 14:43:16:911 ART [DEBUG] header - << "Server: Apache-Coyote/1.1[\r][\n]"
2017/05/03 14:43:16:911 ART [DEBUG] header - << "X-Application-Context: bootstrap[\r][\n]"
2017/05/03 14:43:16:911 ART [DEBUG] header - << "Authorization: WWW-Authenticate: Signature realm="World-Check One API",algorithm="hmac-sha256",headers="(request-target) host date content-type content-length[\r][\n]"
2017/05/03 14:43:16:911 ART [DEBUG] header - << "Transfer-Encoding: chunked[\r][\n]"
2017/05/03 14:43:16:911 ART [DEBUG] header - << "Date: Wed, 03 May 2017 17:43:16 GMT[\r][\n]"
2017/05/03 14:43:16:913 ART [DEBUG] HttpMethodDirector - Authorization required
2017/05/03 14:43:16:914 ART [DEBUG] HttpMethodDirector - Authentication challenge(s) not found
Error: 401
Also, I test with the latest version of postman without succedd.
Could you help me please.
Best Answer
-
When you loaded the WC1 pilot environment, and collection into Postman, did you try the default Groups call in there. It should work straight out of the box. If that's ok, I'd then check your API and API-secret key values to make sure they are correct in the environment.
0
Answers
-
Hi @jcgarcia
here's the code Postman is generating for my environment. for this request
GET /v1/groups HTTP/1.1
Host: rms-world-check-one-api-pilot.thomsonreuters.com
Date: Thu, 04 May 2017 12:02:27 GMT
Authorization: Signature keyId="4b99fff9-4b7c-456e-ac7e-c81c709c390b",algorithm="hmac-sha256",headers="(request-target) host date",signature="Xm4RL75+odpK43hyNMLf9KCh9ZbGmLVihRjb66YM9Es="
Cache-Control: no-cache
Postman-Token: 7ce4a315-63e4-c872-59c2-1180984be14c0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 695 Datastream
- 1.5K DSS
- 631 Eikon COM
- 5.2K Eikon Data APIs
- 12 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 4 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 562 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 281 Open PermID
- 46 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 736 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 96 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛