CLewaimaiHttpClient.h 506 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "CHttpClient.h"
  3. class CLewaimaiHttpClient
  4. {
  5. public:
  6. CLewaimaiHttpClient();
  7. ~CLewaimaiHttpClient();
  8. public:
  9. static void Init(std::string username, std::string password);
  10. static bool Login(std::string& errmsg);
  11. static bool Request(std::string url, std::map<string, string> params, std::string& response);
  12. public:
  13. static CLewaimaiHttpClient m_client;
  14. private:
  15. std::string m_username;
  16. std::string m_password;
  17. std::string m_url = "https://api.lewaimai.com/seller";
  18. };