Problem authorization Urb-IT API
Solved!
Posted in General by Niklas Hultgren Thu Oct 29 2015 11:41:01 GMT+0000 (UTC)·8·Viewed 214 times
Hi,
I’m trying to fetch opening hours for a store but I’m having problems with the authentication. I build the authentication header as mentioned here: http://developer.urb-it.com/v1.0/docs/create-the-authorization-header
Below is what I get in my logfile. Can you see anything wrong?
Not OK returned from Urb-It API: Elapsed time [0:058 seconds] [ Unauthorized ] Parameters: [ application/json={ "from": "2015-10-29T11:35:57.5244218Z", "to": "2015-11-05T11:35:57.5244218Z", "closed": false } : Authorization=UWA 31a8ef40-071c-4f7c-bdfa-1258a7ee7105:vcI59FTY6bDoPqTHwMBJeQyjyjUlNK58pc5IEcOl+kw=:ea5f332f-4ee0-4ea6-849e-b38bd55c7096:1446122157,52542 : Accept=application/vnd.urb-it.se+json; version=1 ] Method: [ openinghours (https://stage-retailer-api.urb-it.com/api/openinghours)] Status [ StatusCode: Unauthorized, StatusDescription: {"status":401,"code":"401","message":"Invalid authorization method.","developer_message":"The provided authorization method is not supported. Supported methods are OAuth1a and UWA.","more_info":null} ]
Tommy Hägvall marked this as solved