Hallo Miteinander,
werde aktuell nicht schlau aus einer CURL Abfrage.
PHP
<?php
$se_api_url = "https:/xxx.de";
$se_api_user = "";
$se_api_pw = "";
$username = "neueruser";
$password = "neuespw";
$email = "e@mail.de";
$limit = "1";
$url = $se_api_url . "/api/admin/add/username/$username/password/$password/email/$email/domainlimit/$limit/format/json/api_usage/1";
$ch = curl_init($url);
curl_setopt($ch, 'CURLOPT_RETURNTRANSFER', true);
curl_setopt($ch, 'CURLOPT_USERPWD', $se_api_user . ":" . $se_api_pw);
$res = json_decode(curl_exec($ch));
print_r($res);
?>
Alles anzeigen
Ich erhalte allerdings immer den Fehler:
You must enter your username and password to use this API1
Hat zufällig jemand eine Idee?
VG
Fisi