Generated 2025-07-09 for CioMarketPop.

This commit is contained in:
sdk-team
2025-07-30 08:28:20 +00:00
parent ecf6c5f448
commit 6a7e1f141c
9 changed files with 433 additions and 1 deletions

View File

@@ -1 +1 @@
1.36.2091 1.36.2092

View File

@@ -0,0 +1,86 @@
#
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(ciomarketpop_public_header
include/alibabacloud/ciomarketpop/CioMarketPopClient.h
include/alibabacloud/ciomarketpop/CioMarketPopExport.h )
set(ciomarketpop_public_header_model
include/alibabacloud/ciomarketpop/model/GetEveryOneSellsFormListRequest.h
include/alibabacloud/ciomarketpop/model/GetEveryOneSellsFormListResult.h )
set(ciomarketpop_src
src/CioMarketPopClient.cc
src/model/GetEveryOneSellsFormListRequest.cc
src/model/GetEveryOneSellsFormListResult.cc )
add_library(ciomarketpop ${LIB_TYPE}
${ciomarketpop_public_header}
${ciomarketpop_public_header_model}
${ciomarketpop_src})
set_target_properties(ciomarketpop
PROPERTIES
LINKER_LANGUAGE CXX
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}ciomarketpop
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(ciomarketpop
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_CIOMARKETPOP_LIBRARY)
endif()
target_include_directories(ciomarketpop
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(ciomarketpop
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(ciomarketpop
jsoncpp)
target_include_directories(ciomarketpop
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(ciomarketpop
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(ciomarketpop
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(ciomarketpop
PRIVATE /usr/include/jsoncpp)
target_link_libraries(ciomarketpop
jsoncpp)
endif()
install(FILES ${ciomarketpop_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ciomarketpop)
install(FILES ${ciomarketpop_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ciomarketpop/model)
install(TARGETS ciomarketpop
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPCLIENT_H_
#define ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "CioMarketPopExport.h"
#include "model/GetEveryOneSellsFormListRequest.h"
#include "model/GetEveryOneSellsFormListResult.h"
namespace AlibabaCloud
{
namespace CioMarketPop
{
class ALIBABACLOUD_CIOMARKETPOP_EXPORT CioMarketPopClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::GetEveryOneSellsFormListResult> GetEveryOneSellsFormListOutcome;
typedef std::future<GetEveryOneSellsFormListOutcome> GetEveryOneSellsFormListOutcomeCallable;
typedef std::function<void(const CioMarketPopClient*, const Model::GetEveryOneSellsFormListRequest&, const GetEveryOneSellsFormListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEveryOneSellsFormListAsyncHandler;
CioMarketPopClient(const Credentials &credentials, const ClientConfiguration &configuration);
CioMarketPopClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
CioMarketPopClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~CioMarketPopClient();
GetEveryOneSellsFormListOutcome getEveryOneSellsFormList(const Model::GetEveryOneSellsFormListRequest &request)const;
void getEveryOneSellsFormListAsync(const Model::GetEveryOneSellsFormListRequest& request, const GetEveryOneSellsFormListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetEveryOneSellsFormListOutcomeCallable getEveryOneSellsFormListCallable(const Model::GetEveryOneSellsFormListRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPCLIENT_H_

View File

@@ -0,0 +1,32 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPEXPORT_H_
#define ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_CIOMARKETPOP_LIBRARY)
# define ALIBABACLOUD_CIOMARKETPOP_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_CIOMARKETPOP_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_CIOMARKETPOP_EXPORT
#endif
#endif // !ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPEXPORT_H_

View File

@@ -0,0 +1,42 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTREQUEST_H_
#define ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTREQUEST_H_
#include <alibabacloud/ciomarketpop/CioMarketPopExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace CioMarketPop {
namespace Model {
class ALIBABACLOUD_CIOMARKETPOP_EXPORT GetEveryOneSellsFormListRequest : public RpcServiceRequest {
public:
GetEveryOneSellsFormListRequest();
~GetEveryOneSellsFormListRequest();
std::string getAuth() const;
void setAuth(const std::string &auth);
private:
std::string auth_;
};
} // namespace Model
} // namespace CioMarketPop
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTRESULT_H_
#define ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ciomarketpop/CioMarketPopExport.h>
namespace AlibabaCloud
{
namespace CioMarketPop
{
namespace Model
{
class ALIBABACLOUD_CIOMARKETPOP_EXPORT GetEveryOneSellsFormListResult : public ServiceResult
{
public:
GetEveryOneSellsFormListResult();
explicit GetEveryOneSellsFormListResult(const std::string &payload);
~GetEveryOneSellsFormListResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_CIOMARKETPOP_MODEL_GETEVERYONESELLSFORMLISTRESULT_H_

View File

@@ -0,0 +1,89 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ciomarketpop/CioMarketPopClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::CioMarketPop;
using namespace AlibabaCloud::CioMarketPop::Model;
namespace
{
const std::string SERVICE_NAME = "CioMarketPop";
}
CioMarketPopClient::CioMarketPopClient(const Credentials &credentials, const ClientConfiguration &configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
CioMarketPopClient::CioMarketPopClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
CioMarketPopClient::CioMarketPopClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
CioMarketPopClient::~CioMarketPopClient()
{}
CioMarketPopClient::GetEveryOneSellsFormListOutcome CioMarketPopClient::getEveryOneSellsFormList(const GetEveryOneSellsFormListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetEveryOneSellsFormListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetEveryOneSellsFormListOutcome(GetEveryOneSellsFormListResult(outcome.result()));
else
return GetEveryOneSellsFormListOutcome(outcome.error());
}
void CioMarketPopClient::getEveryOneSellsFormListAsync(const GetEveryOneSellsFormListRequest& request, const GetEveryOneSellsFormListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getEveryOneSellsFormList(request), context);
};
asyncExecute(new Runnable(fn));
}
CioMarketPopClient::GetEveryOneSellsFormListOutcomeCallable CioMarketPopClient::getEveryOneSellsFormListCallable(const GetEveryOneSellsFormListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetEveryOneSellsFormListOutcome()>>(
[this, request]()
{
return this->getEveryOneSellsFormList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,36 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ciomarketpop/model/GetEveryOneSellsFormListRequest.h>
using AlibabaCloud::CioMarketPop::Model::GetEveryOneSellsFormListRequest;
GetEveryOneSellsFormListRequest::GetEveryOneSellsFormListRequest()
: RpcServiceRequest("ciomarketpop", "2025-07-09", "GetEveryOneSellsFormList") {
setMethod(HttpRequest::Method::Get);
}
GetEveryOneSellsFormListRequest::~GetEveryOneSellsFormListRequest() {}
std::string GetEveryOneSellsFormListRequest::getAuth() const {
return auth_;
}
void GetEveryOneSellsFormListRequest::setAuth(const std::string &auth) {
auth_ = auth;
setParameter(std::string("Auth"), auth);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ciomarketpop/model/GetEveryOneSellsFormListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CioMarketPop;
using namespace AlibabaCloud::CioMarketPop::Model;
GetEveryOneSellsFormListResult::GetEveryOneSellsFormListResult() :
ServiceResult()
{}
GetEveryOneSellsFormListResult::GetEveryOneSellsFormListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetEveryOneSellsFormListResult::~GetEveryOneSellsFormListResult()
{}
void GetEveryOneSellsFormListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}