| 12345678910111213141516171819202122232425262728 |
- #pragma once
- #include "CHttpClient.h"
- class CLewaimaiHttpClient
- {
- public:
- CLewaimaiHttpClient();
- ~CLewaimaiHttpClient();
- public:
- static void Init(std::string username, std::string password);
- static bool Login(std::string& errmsg);
- static bool Request(std::string url, std::map<string, string> params, std::string& response);
- public:
- static CLewaimaiHttpClient m_client;
- private:
- std::string m_username;
- std::string m_password;
- std::string m_url = "https://api.lewaimai.com/seller";
- };
|