]> git.piffa.net Git - arduino/blob - books/pdummies/Libraries/xively/XivelyClient.h
first commit
[arduino] / books / pdummies / Libraries / xively / XivelyClient.h
1
2 #ifndef XIVELYCLIENT_H
3 #define XIVELYCLIENT_H
4
5 #include <Client.h>
6 #include <XivelyFeed.h>
7
8 class XivelyClient
9 {
10 public:
11   XivelyClient(Client& aClient);
12
13   int get(XivelyFeed& aFeed, const char* aApiKey);
14   int put(XivelyFeed& aFeed, const char* aApiKey);
15
16 protected:
17   static const int kCalculateDataLength =0;
18   static const int kSendData =1;
19   void buildPath(char* aDest, unsigned long aFeedId, const char* aFormat);
20
21   Client& _client;
22 };
23
24 #endif