Ver Mensaje Individual
  #7 (permalink)  
Antiguo 28/05/2015, 09:04
Avatar de mager3
mager3
 
Fecha de Ingreso: junio-2012
Ubicación: Medellin
Mensajes: 318
Antigüedad: 11 años, 10 meses
Puntos: 4
Respuesta: Catchable fatal error: Object of class stdClass could not be converted to

hhs, Tienes toda la razon, a veces cuando se desconoce de un tema cometemos multiples errores, pero muchas gracias por tus indicaciones... te cuento.. GRACIAS A VOS, pude dar solucion a mi problema que ya me tenia .

mi codigo final por si alguien necesita de lo mismo.

Código PHP:
Ver original
  1. $deliveryId = $elibom->sendMessage('301576542','SISTEMAS TEST');
  2.  
  3. echo $deliveryId;
  4. //Return json object
  5. $json = $elibom->getDelivery($deliveryId);
  6. //var_dump ($json);
  7.  
  8. $array = json_encode($json);
  9. print_r($array);
  10.  
  11.  
  12. echo "////////////////////////////////////////////////";
  13. echo $json->messages[0]->statusDetail;
Código Java:
Ver original
  1. {"deliveryId":"1236753xx6328725","status":"finished","numSent":0,"numFailed":1,"messages":[{"id":244581931,"user":{"id":12367,"url":"https:\/\/www.elibom.com\/users\/xxx"},"to":"301576542","operator":"","text":"SISTEMAS TEST","status":"failed","statusDetail":"invalid_destination","credits":0,"from":"","createdAt":"2015-05-28 10:05:00"}]}////////////////////////////////////////////////invalid_destination