Sage One API - authorization -


i'm having trouble making api call. have got token, secret etc, no problem. difficulties occur when trying retrieve contact information. i've tried access sage developers forum taken round in circles sage sight.

here own trace.

access : 2a075f2f204a380505a4f27378056bfa326b582f refresh : 2de459f637c1c89bc7add9a424b04f4a2c29a6ec post : post&https%3a%2f%2fapi.sageone.com%2faccounts%2fv1%2fcontacts&contact_type=1&1435822573 signing : 4c53564b7b9f1542838e65384b2c506b37bb5c28&2a075f2f204a380505a4f27378056bfa326b582f hash : nzy2ode1zjjmotvlmmy5mwvjodi2mjdhmtaymgmynwm0n2mynja1ng== curl args:  url : https://api.sageone.com/test/accounts/v1/contacts?contact_type=1  authorization : bearer 2a075f2f204a380505a4f27378056bfa326b582f x-signature : nzy2ode1zjjmotvlmmy5mwvjodi2mjdhmtaymgmynwm0n2mynja1ng== x-nonce : 1435822573 accept : */* content-type : application/x-www-form-urlencoded user-agent : great water  string : authorization=bearer 2a075f2f204a380505a4f27378056bfa326b582f&x-signature=nzy2ode1zjjmotvlmmy5mwvjodi2mjdhmtaymgmynwm0n2mynja1ng==&x-nonce=1435822573&accept=*/*&content-type=application/x-www-form-urlencoded&user-agent=great water& results  {"error":"authorization header missing.","error_description":"please provide 'authorization' header following format: bearer xxxxx."} 

as can see, despite authorization argument being present, sage rejecting it.

any ideas?

not sure language using, there couple of php classes on github can use reference.

if want use clientid / accesstoken in documentation: https://developers.sageone.com/docs/en/v1

use class eddieharrison @ https://github.com/eddieharrison/sageone-api-php

if have requested api key from: https://accounting.sageone.co.za/marketing/developerprogram.aspx

use class put today @ https://github.com/sharnw/sage-one-accounting-api


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -