I'm writing a java client to integrate with SugarCRM via REST API. I have two main questions regarding this.
1) How to differentiate failed responses whether it's due to invalid credentials or due to the expired access_token or due to the expired refresh_token(if refresh_token also expired at the time when we try to refresh our access_token)? I couldn't find any sample responses for the mentioned scenarios in documentation(I was able to find any sample requests, but not the responses)
2) How do I get a sandbox account to test my java client? I have registered as a partner as well (as instructed in this thread), but still couldn't find a way to find a URL for my account to test my java client.
Really appreciate your help on this. Thanks in advance...