QuickBooks Online querying with filter returns 401 everytime

前端 未结 4 1263
独厮守ぢ
独厮守ぢ 2020-12-16 22:17

I\'ve had success creating objects with POST and Content-Type application/xml

I\'ve also had success querying using Content-Type application/x-www-form-urlencoded wi

4条回答
  •  难免孤独
    2020-12-16 22:59

    I believe my problem came down to improper encoding of the Filter's value in the signature. That explains the 401 invalid signature errors I was getting.

    I used an online tool to take me through the steps in properly signing an Oauth request. While going through those steps I realized my problem was with the steps where you normalize the request parameters and then percent-encode them. I was including the '=' of the filter in the normalization step, which breaks your signature. The tool I used can be found at:

    http://hueniverse.com/2008/10/beginners-guide-to-oauth-part-iv-signing-requests/

    Thanks for everyone's input.

提交回复
热议问题