For a deeper look into our World Check One API, look into:

Overview |  Quickstart |  Documentation |  Downloads

question

Upvotes
Accepted
1 1 2 6

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.

world-checkworld-check-oneerror-401
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
211 1 0 0

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
211 1 0 0

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-1180984be14c

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea