Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <title>Front Page Point Retrait</title>
- <meta charset="utf-8">
- <meta http-equiv="pragma" content="no-cache" />
- <meta http-equiv="cache-control" content="no-cache" />
- <meta http-equiv="Expires" content="0" />
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.js"
- type="text/javascript"></script>
- <script src="https://ws.colissimo.fr/widget-point-
- retrait/resources/js/jquery.plugin.colissimo.min.js" type="text/javascript"></script>
- </head>
- <body>
- <h1>Le haut de la page</h1>
- <div id="widget-container" ></div>
- <input type="hidden" id="pudoWidgetErrorCode">
- <h1>Le bas de la page</h1>
- <script type="text/javascript">
- $.post("https://ws.colissimo.fr/widget-point-retrait/rest/authenticate.rest", { "login": "jerem_d", "password": "my-pswd." }, function(back){
- retour = $.parseJSON(back);
- console.log(retour);
- token = retour['token'];
- console.log(token)
- (function() {
- jQuery('#widget-container').frameColissimoOpen({
- "ceLang" : "fr",
- "callBackFrame" : callBackFrame,
- "URLColissimo" : " https://ws.colissimo.fr",
- "ceCountryList" : "FR,ES,GB,PT,DE",
- "ceCountry" : "FR",
- "dyPreparationTime" : "1",
- "ceAddress" : "62 RUE CAMILLE DESMOULINS",
- "ceZipCode" : "92130",
- "ceTown" : "ISSY LES MOULINEAUX",
- "token" : token
- });
- })();
- function callBackFrame(point) {
- console.log('call back frame');
- console.log(point);
- }
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement