untitled notebook

node v8.11.1
version: 1.0.0
endpointsharetweet
const axios = require('axios') const options = { auth: { username: 'janedoe', password: 's00pers3cret' }, headers: { 'authorization': 'Basic bXljYW5hbDpteWNAbkBs', 'xx-profile-id': 0, 'upgrade-insecure-requests': 1 } } const urlConnexion = 'https://preprod-pass.canal-bis.com/form/authentication_sms_activation?bundle=site&ssoconf=auth_mini_actsms_myc&popin=true&pass_target=https%3A%2F%2Fdev.mycanal.fr%2F%23%3Forigref%3D&urlSource=https%3A%2F%2Fdev.mycanal.fr%2F%3Forigref%3D&pass_modal=false&socialLinksDisabled=true&omnitureChannel=Usage&distributorId=D22024' const authRequest = 'https://preprod-pass.canal-bis.com/form/authentication_sms_activation?bundle=site&ssoconf=auth_mini_actsms_myc&popin=true&pass_target=https%3A%2F%2Fdev.mycanal.fr%2F%23%3Forigref%3D&urlSource=https%3A%2F%2Fdev.mycanal.fr%2F%3Forigref%3D&pass_modal=false&socialLinksDisabled=true&omnitureChannel=Usage&distributorId=D22024' const firstRequest = axios.post(authRequest, options) const credentials = 'socialAction: authentication, ssoEmail: mkgdig6@gmail.com, ssoPass: fnac6' firstRequest .then((res) => { console.log(res) }) .catch(err => console.log(err))
Loading…

no comments

    sign in to comment