Service Requête impression (PRINT)
Requête permettant l'envoi et paramétrage d'impression.
URL requête : http://www.expedy.fr/api/print
Paramètre |
Description |
Format |
imprimante |
UID imprimante visible dans votre console (https://www.expedy.fr/console) |
|
msg |
Contenu du message à imprimer |
|
Exemple PHP :
Appel du service dans un fichier nommé : printer_point_lib.php
<?php
function Print_point($imprimante,$message) {
// id customer EXPEDY
$sid = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$data = array('sid' => $sid,'token' => $token,'params' => array('printer_uid' => $imprimante,'printer_msg' => $message));
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.expedy.fr/api/print");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
$result = curl_exec ($ch);
curl_close ($ch);
return $result;
}
?>
Exemple envoi message à imprimer :
<?php
// Preparation
include "printer_point_lib.php";
$imprimante = "XXXXXXXXX";
// Your message
$msg = "Hello World !";
// To Print
Print_point($imprimante,$msg);
?>
Les solutions d'impression à distance Expedy Print
Retrouvez sur notre boutique officielle toutes les références d'imprimantes thermiques cloud, de l'imprimante Uber Eats ou d'Expedy Cloud Print Box
Développeur indépendant ou agence ? Vous pouvez devenir Partenaire
Commentaires
0 commentaire
Cet article n'accepte pas de commentaires.