mirror of
https://github.com/fernwerker/ownDynDNS.git
synced 2025-07-18 01:05:43 +02:00
added option to pass netcup creds via url
This commit is contained in:
parent
46d9f8f759
commit
d974e5a886
4 changed files with 118 additions and 14 deletions
|
@ -44,6 +44,21 @@ final class Payload
|
|||
*/
|
||||
private $host;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $customerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $apiKey;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $apiPassword;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
|
@ -85,6 +100,41 @@ final class Payload
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isValidNetcupCreds()
|
||||
{
|
||||
return
|
||||
!empty($this->customerId) &&
|
||||
!empty($this->apiKey) &&
|
||||
!empty($this->apiPassword);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getCustomerId()
|
||||
{
|
||||
return $this->customerId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getapiKey()
|
||||
{
|
||||
return $this->apiKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getApiPassword()
|
||||
{
|
||||
return $this->apiPassword;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue