2
* Copyright (C) 2016 Canonical, Ltd.
4
* This library is free software; you can redistribute it and/or modify it under
5
* the terms of version 3 of the GNU Lesser General Public License as published
6
* by the Free Software Foundation.
8
* This library is distributed in the hope that it will be useful, but WITHOUT
9
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Author: Gary Wang <gary.wang@canonical.com>
19
#ifndef MCLOUD_API_CONFIG_H_
20
#define MCLOUD_API_CONFIG_H_
29
typedef std::shared_ptr<Config> Ptr;
32
* The access token provided at instantiation
34
std::string access_token { };
37
* The client id provided at instantiation
39
std::string client_id { "APP1ZtqoN3R0002" };
42
* The secret provided at instantiation
44
std::string client_secret { "A70EFCDC91456349E7FDECF0A33574AC" };
47
* API key for unauthenticated access
49
std::string api_key { };
52
* The root of all API request URLs
54
std::string apiroot {"https://ose.caiyun.feixin.10086.cn"};
57
* The custom HTTP user agent string for this library
59
std::string user_agent {"mcloud 1.0"};
62
* Have we got access to private APIs?
64
bool authenticated = false;
70
#endif /* MCLOUD_API_CONFIG_H_ */