Advertisement
jerem_d

Untitled

Aug 3rd, 2021
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <title>Front Page Point Retrait</title>
  2.  <meta charset="utf-8">
  3.  <meta http-equiv="pragma" content="no-cache" />
  4.  <meta http-equiv="cache-control" content="no-cache" />
  5.  <meta http-equiv="Expires" content="0" />
  6.  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.js"
  7. type="text/javascript"></script>
  8.  <script src="https://ws.colissimo.fr/widget-point-
  9. retrait/resources/js/jquery.plugin.colissimo.min.js" type="text/javascript"></script>
  10. </head>
  11. <body>
  12.  <h1>Le haut de la page</h1>
  13.  <div id="widget-container" ></div>
  14.  <input type="hidden" id="pudoWidgetErrorCode">
  15.  <h1>Le bas de la page</h1>
  16.  
  17.   <script type="text/javascript">
  18.   $.post("https://ws.colissimo.fr/widget-point-retrait/rest/authenticate.rest", { "login": "jerem_d", "password": "my-pswd." }, function(back){
  19.   retour = $.parseJSON(back);
  20.   console.log(retour);
  21. token = retour['token'];
  22. console.log(token)
  23.  
  24.  
  25. (function() {
  26.  
  27.  jQuery('#widget-container').frameColissimoOpen({
  28.   "ceLang" : "fr",
  29.   "callBackFrame" : callBackFrame,
  30.   "URLColissimo" : " https://ws.colissimo.fr",
  31.   "ceCountryList" : "FR,ES,GB,PT,DE",
  32.   "ceCountry" : "FR",
  33.   "dyPreparationTime" : "1",
  34.   "ceAddress" : "62 RUE CAMILLE DESMOULINS",
  35.   "ceZipCode" : "92130",
  36.   "ceTown" : "ISSY LES MOULINEAUX",
  37.   "token" : token  
  38.  });
  39. })();
  40.  
  41. function callBackFrame(point) {
  42.  console.log('call back frame');
  43.  console.log(point);
  44. }
  45. });
  46.  </script>
  47. </body>
  48. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement