Ver Mensaje Individual
  #6 (permalink)  
Antiguo 18/08/2013, 18:19
TEXT
 
Fecha de Ingreso: agosto-2013
Ubicación: Puebla
Mensajes: 6
Antigüedad: 10 años, 8 meses
Puntos: 0
Respuesta: Pasarela de pagos mercadopago

HOLA ME ENCONTRE CON ESTE TEMA, PERO COMO PUEDO OBTENER MI ACCES_TOKEN EVIANDOLO POR JSON....ES UN SCRIPT PHP VERDAD???

ESTE ES EL CODIGO QUE ME MARCA MERCADO PAGO

RECUEST-CURL
__________________

curl -X POST \
-H 'accept: application/json' \
-H 'content-type: application/x-www-form-urlencoded' \
'https://api.mercadolibre.com/oauth/token' \
-d 'grant_type=client_credentials' \
-d 'client_id=CLIENT_ID' \
-d 'client_secret=CLIENT_SECRET'
__________________________________________________ ______

RESPONSE (JSON)
________________________

Status code: 200 OK
{
"access_token": "TU_ACCESS_TOKEN",
"token_type": "bearer",
"expires_in": 10800,
"scope": "...",
"refresh_token": "REFRESH_TOKEN"
}

____________________________________________

PARTIENDO DE AHI YA TENGO MIS CLAVES CLIENT_ID Y MI CLIENT_SECRET

AGHORA:::::

Pongo este codigo dentro de cada boton generado por mercado pago o simplemente envio este para adquirir mi ACCES_TOKEN....PERO EN QUE PHP????? SOLO?????