123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- <?php
- /**
- *
- * SDK配置类
- *
- */
- require_once(dirname(__FILE__) . '/sdk/param/' . 'ParamSwitcher.php');
- require_once(dirname(__FILE__) . '/sdk/http/' . 'HttpHeader.php');
- require_once(dirname(__FILE__) . '/sdk/http/' . 'HttpConnection.php');
- require_once(dirname(__FILE__) . '/sdk/http/' . 'HttpParameter.php');
- require_once(dirname(__FILE__) . '/sdk/http/' . 'HttpMethod.php');
- require_once(dirname(__FILE__) . '/sdk/http/' . 'HttpClient.php');
- require_once(dirname(__FILE__) . '/sdk/utils/' . 'CryptUtils.php');
- require_once(dirname(__FILE__) . '/sdk/' . 'SDKClient.php');
- require_once(dirname(__FILE__) . '/sdk/request/' . 'SdkRequest.php');
- require_once(dirname(__FILE__) . '/sdk/' . 'SaaSSdkClient.php');
- require_once(dirname(__FILE__) . '/sdk/bean/' . "Action.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "Attachment.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "Audit.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "Category.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "Company.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "Contract.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "CopySendReceiver.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "Document.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "Employee.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "Seal.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "Signatory.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "Stamper.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "Template.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "TemplateParam.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "User.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "UserAuth.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "SealImageInfo.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "UserAuthInfo.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "Watermark.php");
- require_once(dirname(__FILE__) . '/sdk/bean/' . "ContractCustomField.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "AttachmentDownloadRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "CategoryDetailRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "CategoryListRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "CompanyAuthH5PageRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "CompanyAuthLicenseH5PageRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "CompanyAuthLicensePCPageRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "CompanyAuthPCPageRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "CompanyAuthResultRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "CompanyDetailRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "CompanyLicenseDownloadRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractAuditRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractCompanySignRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractSignUserRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractCopySendRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractDetailRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractDownloadRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractDraftRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractInvalidRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractListRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractLpSignRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractNoticeRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractPageRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractSendRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractShorturlRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractSignInvalidRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractViewPageRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "DocumentAddByFileRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "DocumentAddByMultipleFileRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "DocumentAddByTemplateRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "DocumentDownloadRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "EmployeeCreateRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "EmployeeListRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "EmployeeRemoveRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "EmployeeUpdateRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "PlatformInfoRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SealImageRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SealListRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SignatoryAddRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SignatoryEditRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SignatoryIdentityRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SignatoryInfoRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SubCompanyListRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "TemplateDetailRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "TemplateListRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "TemplatePageRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "UserAuthPageRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "UserAuthResultRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "VerifierRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SealAutoCreateRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "InvalidByFileRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "InvalidByTemplateRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SealDetailRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "EmployeeSealImageRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractAppointPageRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "EmployeeDetailRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "CompanyAuthMiniappTicketRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "UserAuthMiniappTicketRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractMiniappTicketRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "CustomerAddRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "AddEndSignAttachmentRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractForceEndRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "ContractAddWatermarkRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "RoleManagementRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SealCreatebyImageRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SealEditRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SealRemoveRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SealStatusManageRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "TemplateCreateByWordRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "TemplateEditRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "TemplateDownloadRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "TemplateRemoveRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "TemplateStatusManageRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "CompanyAuthLicenseMiniappTicketRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SubCompanyInviteRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SubCompanyRemoveRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SaaSAppAccessControlRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SaasApplyAppRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SaaSBindingRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SaaSCompanyAccessControlRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SaasCompanyAuthPageUrlRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SaaSCompanyAuthUrlRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SaaSCompanyDetailRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SaaSPersonalAccessControlRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SaasPrivilegeUrlRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SaasPrivilegeDetailRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SaaSResetTokenRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SaasCompanyAuthResultRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "SaaSCompanyAuthMiniappTicketRequest.php");
- require_once(dirname(__FILE__) . '/sdk/request/' . "OpenSSOPrivilegeUrlRequest.php");
- class Util {
- const url = "https://openapi.qiyuesuo.cn";
- const accessKey = "dxp6Uttttz";
- const accessSecret = "UmpDowMmKmvOe3aYBzhhiDyKG0gOd9";
- public static function getSDk() {
- $url = self::url;
- $accessKey = self::accessKey;
- $accessSecret = self::accessSecret;
- $SDk = new SDKClient($accessKey, $accessSecret, $url);
- return $SDk;
- }
- }
- class SaasUtil {
- const serverUrl = "https://openapi.qiyuesuo.cn";
- const accessKey = "替换为真实accessKey";
- const accessSecret = "替换为真实accessSecret";
- const agentToken = "替换为真实agentToken";
- const agentSecret = "替换为真实agentSecret";
- public static function getSaasSDk() {
- $agentToken = self::agentToken;
- $agentSecret = self::agentSecret;
- $accessKey = self::accessKey;
- $accessSecret = self::accessSecret;
- $serverUrl = self::serverUrl;
- $saasSdk = new SaaSSdkClient($agentToken, $agentSecret, $accessKey, $accessSecret, $serverUrl);
- return $saasSdk;
- }
- public static function getSaasOnlyClient() {
- $agentToken = self::agentToken;
- $agentSecret = self::agentSecret;
- $serverUrl = self::serverUrl;
- $onlyClient = new SaaSSdkClient($agentToken, $agentSecret, $serverUrl);
- return $onlyClient;
- }
- }
|