DYSMSAPI SDK Auto Released By zhangzifa,Version:1.34.62

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-03-27 10:37:13 +08:00
parent 5d1aad0c37
commit 25bddc9e7a
19 changed files with 1374 additions and 2 deletions

View File

@@ -0,0 +1,70 @@
/*
* 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_DYSMSAPI_DYSMSAPICLIENT_H_
#define ALIBABACLOUD_DYSMSAPI_DYSMSAPICLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "DysmsapiExport.h"
#include "model/SendSmsRequest.h"
#include "model/SendSmsResult.h"
#include "model/SendBatchSmsRequest.h"
#include "model/SendBatchSmsResult.h"
#include "model/QuerySendDetailsRequest.h"
#include "model/QuerySendDetailsResult.h"
namespace AlibabaCloud
{
namespace Dysmsapi
{
class ALIBABACLOUD_DYSMSAPI_EXPORT DysmsapiClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::SendSmsResult> SendSmsOutcome;
typedef std::future<SendSmsOutcome> SendSmsOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::SendSmsRequest&, const SendSmsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendSmsAsyncHandler;
typedef Outcome<Error, Model::SendBatchSmsResult> SendBatchSmsOutcome;
typedef std::future<SendBatchSmsOutcome> SendBatchSmsOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::SendBatchSmsRequest&, const SendBatchSmsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendBatchSmsAsyncHandler;
typedef Outcome<Error, Model::QuerySendDetailsResult> QuerySendDetailsOutcome;
typedef std::future<QuerySendDetailsOutcome> QuerySendDetailsOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::QuerySendDetailsRequest&, const QuerySendDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySendDetailsAsyncHandler;
DysmsapiClient(const Credentials &credentials, const ClientConfiguration &configuration);
DysmsapiClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
DysmsapiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~DysmsapiClient();
SendSmsOutcome sendSms(const Model::SendSmsRequest &request)const;
void sendSmsAsync(const Model::SendSmsRequest& request, const SendSmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SendSmsOutcomeCallable sendSmsCallable(const Model::SendSmsRequest& request) const;
SendBatchSmsOutcome sendBatchSms(const Model::SendBatchSmsRequest &request)const;
void sendBatchSmsAsync(const Model::SendBatchSmsRequest& request, const SendBatchSmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SendBatchSmsOutcomeCallable sendBatchSmsCallable(const Model::SendBatchSmsRequest& request) const;
QuerySendDetailsOutcome querySendDetails(const Model::QuerySendDetailsRequest &request)const;
void querySendDetailsAsync(const Model::QuerySendDetailsRequest& request, const QuerySendDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySendDetailsOutcomeCallable querySendDetailsCallable(const Model::QuerySendDetailsRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_DYSMSAPICLIENT_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_DYSMSAPI_DYSMSAPIEXPORT_H_
#define ALIBABACLOUD_DYSMSAPI_DYSMSAPIEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_DYSMSAPI_LIBRARY)
# define ALIBABACLOUD_DYSMSAPI_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_DYSMSAPI_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_DYSMSAPI_EXPORT
#endif
#endif // !ALIBABACLOUD_DYSMSAPI_DYSMSAPIEXPORT_H_

View File

@@ -0,0 +1,72 @@
/*
* 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_DYSMSAPI_MODEL_QUERYSENDDETAILSREQUEST_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDDETAILSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySendDetailsRequest : public RpcServiceRequest
{
public:
QuerySendDetailsRequest();
~QuerySendDetailsRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getSendDate()const;
void setSendDate(const std::string& sendDate);
std::string getPhoneNumber()const;
void setPhoneNumber(const std::string& phoneNumber);
std::string getBizId()const;
void setBizId(const std::string& bizId);
long getPageSize()const;
void setPageSize(long pageSize);
long getCurrentPage()const;
void setCurrentPage(long currentPage);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
std::string sendDate_;
std::string phoneNumber_;
std::string bizId_;
long pageSize_;
long currentPage_;
long ownerId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDDETAILSREQUEST_H_

View File

@@ -0,0 +1,68 @@
/*
* 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_DYSMSAPI_MODEL_QUERYSENDDETAILSRESULT_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDDETAILSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySendDetailsResult : public ServiceResult
{
public:
struct SmsSendDetailDTO
{
std::string templateCode;
std::string receiveDate;
std::string phoneNum;
std::string content;
long sendStatus;
std::string outId;
std::string sendDate;
std::string errCode;
};
QuerySendDetailsResult();
explicit QuerySendDetailsResult(const std::string &payload);
~QuerySendDetailsResult();
std::string getTotalCount()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<SmsSendDetailDTO> getSmsSendDetailDTOs()const;
protected:
void parse(const std::string &payload);
private:
std::string totalCount_;
std::string message_;
std::string code_;
std::vector<SmsSendDetailDTO> smsSendDetailDTOs_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDDETAILSRESULT_H_

View File

@@ -0,0 +1,72 @@
/*
* 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_DYSMSAPI_MODEL_SENDBATCHSMSREQUEST_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_SENDBATCHSMSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT SendBatchSmsRequest : public RpcServiceRequest
{
public:
SendBatchSmsRequest();
~SendBatchSmsRequest();
std::string getTemplateParamJson()const;
void setTemplateParamJson(const std::string& templateParamJson);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getSmsUpExtendCodeJson()const;
void setSmsUpExtendCodeJson(const std::string& smsUpExtendCodeJson);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getSignNameJson()const;
void setSignNameJson(const std::string& signNameJson);
std::string getTemplateCode()const;
void setTemplateCode(const std::string& templateCode);
std::string getPhoneNumberJson()const;
void setPhoneNumberJson(const std::string& phoneNumberJson);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string templateParamJson_;
long resourceOwnerId_;
std::string resourceOwnerAccount_;
std::string smsUpExtendCodeJson_;
long ownerId_;
std::string signNameJson_;
std::string templateCode_;
std::string phoneNumberJson_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SENDBATCHSMSREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_DYSMSAPI_MODEL_SENDBATCHSMSRESULT_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_SENDBATCHSMSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT SendBatchSmsResult : public ServiceResult
{
public:
SendBatchSmsResult();
explicit SendBatchSmsResult(const std::string &payload);
~SendBatchSmsResult();
std::string getMessage()const;
std::string getBizId()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string bizId_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SENDBATCHSMSRESULT_H_

View File

@@ -0,0 +1,75 @@
/*
* 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_DYSMSAPI_MODEL_SENDSMSREQUEST_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_SENDSMSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT SendSmsRequest : public RpcServiceRequest
{
public:
SendSmsRequest();
~SendSmsRequest();
std::string getSmsUpExtendCode()const;
void setSmsUpExtendCode(const std::string& smsUpExtendCode);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getSignName()const;
void setSignName(const std::string& signName);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getPhoneNumbers()const;
void setPhoneNumbers(const std::string& phoneNumbers);
std::string getOutId()const;
void setOutId(const std::string& outId);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getTemplateCode()const;
void setTemplateCode(const std::string& templateCode);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getTemplateParam()const;
void setTemplateParam(const std::string& templateParam);
private:
std::string smsUpExtendCode_;
long resourceOwnerId_;
std::string signName_;
std::string resourceOwnerAccount_;
std::string phoneNumbers_;
std::string outId_;
long ownerId_;
std::string templateCode_;
std::string accessKeyId_;
std::string templateParam_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SENDSMSREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_DYSMSAPI_MODEL_SENDSMSRESULT_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_SENDSMSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT SendSmsResult : public ServiceResult
{
public:
SendSmsResult();
explicit SendSmsResult(const std::string &payload);
~SendSmsResult();
std::string getMessage()const;
std::string getBizId()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string bizId_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SENDSMSRESULT_H_