2019-06-18 09:23:24 +00:00
|
|
|
//
|
|
|
|
// Created by lukas on 18.06.19.
|
|
|
|
//
|
|
|
|
|
2019-08-01 19:19:02 +00:00
|
|
|
#pragma once
|
2019-06-18 09:23:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
#include "API.h"
|
|
|
|
|
|
|
|
class DynuAPI : API{
|
|
|
|
public:
|
2019-08-01 19:19:02 +00:00
|
|
|
/**
|
|
|
|
* refresh the ip of domain on Dynu server
|
|
|
|
* @param ip new ip
|
|
|
|
* @return request status
|
|
|
|
*/
|
2019-06-18 09:23:24 +00:00
|
|
|
int refreshIp(std::string ip);
|
|
|
|
private:
|
2019-06-18 09:42:26 +00:00
|
|
|
const std::string dynuapikey = "88vNpMfDhMM2YYDNfWR1DNYfRX9W6fYg";
|
2019-06-18 09:23:24 +00:00
|
|
|
|
2019-06-18 09:42:26 +00:00
|
|
|
const std::string domainid = "8506047"; //id of the dynu domain
|
|
|
|
const std::string domainname = "luki.dynu.net";
|
2019-06-18 09:23:24 +00:00
|
|
|
};
|