Advertisement
Guest User

instagramstats.h

a guest
Feb 1st, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. /*
  2.  
  3. This library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public
  5. License as published by the Free Software Foundation; either
  6. version 2.1 of the License, or (at your option) any later version.
  7.  
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12.  
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with this library; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16.  
  17. Written By Brian Lough
  18. https://www.youtube.com/user/witnessmenow
  19. https://github.com/witnessmenow
  20. https://twitter.com/witnessmenow
  21.  
  22. */
  23.  
  24. #ifndef InstagramStats_h
  25. #define InstagramStats_h
  26.  
  27. #include <Arduino.h>
  28. #include <Client.h>
  29.  
  30. #include "JsonListener.h" //Eichhorn 1.0.5
  31. #include "JsonStreamingParser.h"
  32.  
  33. #define INSTA_HOST "www.instagram.com"
  34. #define INSTA_SSL_PORT 443
  35.  
  36. struct InstagramUserStats {
  37. int followedByCount;
  38. };
  39.  
  40. class InstagramStats {
  41. public:
  42. InstagramStats(Client &client);
  43. InstagramUserStats getUserStats(String user);
  44. bool _debug = false; // MISSING normalerweise false
  45.  
  46. private:
  47. Client *client;
  48. void closeClient();
  49. };
  50. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement