Jump to content

Sage Sage

Members
  • Posts

    5
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello. I find a solution to get token from Java API. There is my code. It uses some apache libraries: (HttpClient and HttpCore)
  2. Hello! Yes, I can confirm that my callback url is correct. I've made some updates to my java code. As you can see, I'm redirected to the callback URL, with an authorization code. I'm blocked with the step "Exchange the authorization code for the access token". I get error 400. (It's the same error on postman if we dont send the body parameters as x-www-form-urlencoder, so I think the problem comes to the syntax of the body parameters)
  3. Thanks for the code example but now I have error 400 "DataParsingError The data you sent could not be processed" A kind of syntax error with request body
  4. Hello! Thank you for replying me. When I just take the code in URL an try it on postman, it works, it sends a token (knowing that the code expires after 60 seconds and we can't use it twice)
  5. Hello, I'm a student and I develop a Java Web Application that supposed to get and post data beetween Web App and Sage Accounting. The post request (https://oauth.accounting.sage.com/token) to get token always returns 403. I put here my code. Thanks!
×
×
  • Create New...