I need help to obtain an authorize code, is there any way to get one without accepting anything or any window that pops up. I need this for my service as an automated process. I tried like a thousand ways but nothing works. Please does anyone know a solution?
As per the docs (http://msdn.microsoft.com/en-us/library/dn659750.aspx), you can use a refresh token if your app has offline access in its scope.
If offline access is set, when you retrieve your authentication token normally, you'll also get a refresh token. When the normal token expires, you can request a new one similarly to the first token, replacing the code
query parameter with the refresh_token
parameter.
To be clear, the process looks like this as per the docs:
oauth20_token.srf
endpoint) to receive a set of tokens (one of these will be refresh)access_token
you received to expirerefresh_token
you received for a new access token as per the "Getting a new access token or refresh token" section of the docs