19 #ifndef MCLOUD_API_CLIENT_H_ 20 #define MCLOUD_API_CLIENT_H_ 69 typedef std::shared_ptr<Client>
Ptr;
81 Client(
int request_timeout = 10);
93 void set_access_token(
const std::string &access_token);
101 bool refresh_token(
const std::string &refresh_token);
117 std::string cloud_root_folder_id();
128 ResourceList cloud_content_list(
int start_index,
131 const std::string &folder_id = std::string());
148 const std::string &folder_id);
157 [[gnu::deprecated(
"cmcc closes this api for security reason")]]
159 const std::string &folder_id,
168 OutlinkList create_folder_extranet_link(
const Stringlist &folder_ids);
176 OutlinkList create_content_extranet_link(
const Stringlist &content_ids);
185 const std::string &_folder_id);
194 const std::string &folder_id);
202 bool move_items(
const Stringlist &folder_ids,
203 const Stringlist &content_ids,
204 const std::string &folder_id);
211 bool update_folder(
const std::string &folder_id,
212 const std::string &new_folder_name);
219 bool delete_contents(
const Stringlist &content_ids);
226 bool exist_on_cloud(
const std::string &file_path,
227 const std::string &folder_id = std::string());
236 std::shared_ptr<ClientPriv> p_;
243 #endif // MCLOUD_API_CLIENT_H_
DiskInfo is a class that provides basic user's mcloud storage usage information.
std::deque< CloudResource::Ptr > ResourceList
Mcloud API provides developer to easily access login user's cloud contents stored on mcloud...
std::shared_ptr< SyncManager > Ptr
std::shared_ptr< CloudContent > Ptr
std::shared_ptr< CloudFolder > Ptr
std::vector< std::string > Stringlist
std::deque< Outlink::Ptr > OutlinkList
all kinds of content type
#define MCLOUD_API_DLL_PUBLIC
std::shared_ptr< Client > Ptr