Skip to content

Instantly share code, notes, and snippets.

View RiRe's full-sized avatar

Richard Reiber RiRe

  • sourceWAY
  • Herzogenrath
View GitHub Profile
@RiRe
RiRe / penta.php
Created February 8, 2019 16:29
Penta: Get account statement
<?php
$email = "";
$pwd = "";
$ch = curl_init("https://app.getpenta.com/api/users/login");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"content-type: application/json; charset=utf-8",
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([