Files
DynuIPRefresher/inc/api/DynuAPI.h
T

45 lines
848 B
C++
Raw Normal View History

2020-05-08 16:45:27 +02:00
/**
* Dynu API - Refresh the IP
*
* @author Lukas Heiligenbrunner
* @date 18.06.2019
*/
#pragma once
#include "API.h"
2020-05-07 14:54:40 +02:00
class DynuAPI : API {
public:
/**
* refresh the ip of domain on Dynu server
* @param ip new ip
* @return request status
*/
2020-05-07 14:54:40 +02:00
bool refreshIp(std::string ip);
/**
* init Telegram api with apikey and chatid
* @param dynuApiKey Dynu Api key
* @param domainId ID of domain received by Dynu
* @param domainName domainname to refresh
*/
2020-05-07 14:54:40 +02:00
void init(const std::string &dynuApiKey, const std::string &domainId, const std::string &domainName);
private:
2020-05-08 16:45:27 +02:00
/**
* Dynu API Key
*/
std::string dynuapikey;
2020-05-08 16:45:27 +02:00
/**
* Dynu Domain ID
*/
std::string domainid;
/**
* Domain name eg. "mydomain.dynu.net"
*/
std::string domainname;
};