-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswApiClient.h
41 lines (31 loc) · 1.08 KB
/
swApiClient.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef SWAPICLIENT_H
#define SWAPICLIENT_H
#include <iostream>
#include <string>
#include <curl/curl.h>
#include "json.hpp"
/*
===============================================================================
This is a sample client for the Shapeways API. It is intended to
illustrate the capabilities of and patterns for interacting with
the API, not to provide a full reference client.
We welcome any pull requests to improve or further implement the API
for the community to use.
More information available at
http://developers.shapeways.com/docs
===============================================================================
*/
class swApiClient
{
private:
std::string consumerKey;
std::string consumerSecret;
std::string accessToken;
struct curl_slist * SetAuthHeader();
public:
swApiClient( std::string consumerKey, std::string consumerSecret );
void Authorize();
std::string GetMaterials();
std::string UploadModel( std::string modelFilePath );
};
#endif