Skip to content

Commit

Permalink
Update core + indent
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigri44 committed Oct 30, 2018
1 parent 52c7069 commit c6efc69
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions sigri_linky/core/class/sigri_linky.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public static function launch_sigri_linky()

$cmd = $sigri_linky->getCmd(null, 'consojour');
if (is_object($cmd)) {
$end_date = new DateTime();
$end_date = new DateTime()-1;
$start_date = new DateTime();
$start_date->sub(new DateInterval('P30D'));
$sigri_linky->Call_Enedis_API($API_cookies, $Useragent, "urlCdcJour", $start_date, $end_date);
Expand All @@ -206,7 +206,7 @@ public static function launch_sigri_linky()
}
}
log::add('sigri_linky', 'info', 'Fin d\'interrogration Enedis');
} else {
} else {
log::add('sigri_linky', 'error', 'Identifiants requis');
}
}
Expand All @@ -221,11 +221,11 @@ public function Login_Enedis_API($Useragent)
$URL_ACCUEIL = "https://espace-client-particuliers.enedis.fr/group/espace-particuliers/accueil";

$data = array(
"IDToken1=".urlencode($this->getConfiguration('identifiant')),
"IDToken2=".urlencode($this->getConfiguration('password')),
"SunQueryParamsString=".base64_encode('realm=particuliers'),
"encoded=true",
"gx_charset=UTF-8",
"IDToken1=".urlencode($this->getConfiguration('identifiant')),
"IDToken2=".urlencode($this->getConfiguration('password')),
"SunQueryParamsString=".base64_encode('realm=particuliers'),
"encoded=true",
"gx_charset=UTF-8",
);

for ($login_phase1_attemps = 1; $login_phase1_attemps <= 11; $login_phase1_attemps++) {
Expand Down

0 comments on commit c6efc69

Please sign in to comment.