Good Morning folks!
I'm trying to build an app to integrate with an ERP (TOTVS - Protheus).
I'm using an PHP webservice (REST) to do the authentication stpe, because the ERP's SDK can´t do that.
So, I'm using the PHP SDK.
I've read the documentation and can't find a solution to my problem.
I'm trying to follow the Server Side flow, but I can't go further the step one.
What I'm doing:
Step 1: Obtain a code
My PHP class receives the parameter to do this. I'm sending the User ID and the secret code.
So I'm using the getAuthUrl() method to build the URL and Get method to request the Auth code.
So, Mercado Livre returns the http status: 302 (Moved Temporarily).
My location is Brazil, so the url is http://auth.mercadolivre.com.br/authorization.
My app builds the parameters perfectly, just like the docs says.
It's my first time working in a project with oAuth, so I'm lost with this issue.