mirror of
https://github.com/HackHerz/pusher
synced 2025-12-06 02:10:19 +00:00
No boost dependencies anymore
This commit is contained in:
parent
ab3c0b62df
commit
ca3289de24
39 changed files with 13456 additions and 4467 deletions
|
|
@ -4,8 +4,14 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
||||
#define API_TOKEN "1234" // change this line
|
||||
// Change this line if you are using your own API-Token
|
||||
const char API_TOKEN[] = {
|
||||
0x38, 0x45, 0x37, 0x44, 0x38, 0x42, 0x32,
|
||||
0x44, 0x44, 0x45, 0x37, 0x44, 0x44, 0x45,
|
||||
0x37, 0x44, 0x36, 0x43, 0x33, 0x56, 0x35,
|
||||
0x32, 0x56, 0x42, 0x35, 0x32, 0x56, 0x42,
|
||||
0x44, 0x34, 0x44, 0x44, 0x45, 0x54, 0x42,
|
||||
0x54, 0x54, 0x54, 0x4b, 0x46, 0x46, 0x42 };
|
||||
|
||||
#define APP_PACKAGE "com.hackherz.pusher"
|
||||
#define USER_AGENT "pusher/0.2"
|
||||
|
|
@ -27,14 +33,14 @@ public:
|
|||
typedef struct
|
||||
{
|
||||
std::string title;
|
||||
int id;
|
||||
std::string id;
|
||||
std::string model;
|
||||
} Device;
|
||||
|
||||
|
||||
std::string login(std::string password);
|
||||
std::vector<Device> getDevices();
|
||||
void sendToDevice(int deviceID, std::string message);
|
||||
void sendToDevice(std::string deviceID, std::string message);
|
||||
bool verifyToken();
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue