yuramozol / com.docstudio.api.php-client
DocStudio API Client
v110.4
2024-07-22 14:19 UTC
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is auto-updated.
Last update: 2024-12-02 15:17:18 UTC
README
This PHP package is automatically generated by the Swagger Codegen project:
- API version: R110.5
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen
Requirements
PHP 7.4 and later
Installation & Usage
Composer
To install the bindings via Composer, do the following:
composer require jecksolovyev/com.docstudio.api.php-client
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); use DocStudio\Client\ApiException; use DocStudio\Client\Configuration; use DocStudio\Client\Model\LoginDTO; use DocStudio\Client\Model\QuickSendDTO; use DocStudio\Client\Model\QuickSendRecipientDTO; use DocStudio\Client\Api\EnvelopeControllerApi; use DocStudio\Client\Api\AuthenticationControllerApi; $httpClient = new GuzzleHttp\Client([ 'timeout' => 30, 'connect_timeout' => 30, 'read_timeout' => 30 ] ); $username = 'my@email.com'; $password = 'password'; $loginController = new AuthenticationControllerApi($httpClient); $token = $loginController->login((new LoginDTO())->setLogin($username)->setPassword($password))->getToken(); echo 'Token: ' . $token . PHP_EOL; $configuration = new Configuration(); $configuration->setUserAgent('Demo integration')->setAccessToken($token); $mailboxController = new DocStudio\Client\Api\MailboxControllerApi($httpClient, $configuration); $mailboxUuid = $mailboxController->getAllForUser()[0]->getMailboxUuid(); $envelopeController = new EnvelopeControllerApi($httpClient, $configuration); $quickSendRequest = new QuickSendDTO(); $quickSendRequest->setSubject('Test envelope')->setMessage('Test envelope message'); $sender = new QuickSendRecipientDTO(); $recipients = []; $sender->setRecipient($mailboxUuid)->setSigner(true)->setEInkSignature(true); $recipients[] = $sender; $recipient = new QuickSendRecipientDTO(); $recipient->setRecipient('wife@family.com')->setSigner(true)->setEInkSignature(true); $recipients[] = $recipient; $quickSendRequest->setRecipients($recipients); $envelopeController->quickSendExternalDocuments(['/app/sample.pdf', '/app/sample2.pdf'], $quickSendRequest, $mailboxUuid);
API Endpoints
All URIs are relative to https://api.docstudio.com
Models
- AccountAddressDTO
- AccountBillingCounterValueDTO
- AccountBillingEventDTO
- AccountBillingInfoDTO
- AccountBillingTariffInfoDTO
- AccountCreateDTO
- AccountDTO
- AccountDomainCreateDTO
- AccountDomainDTO
- AccountDomainUpdateDTO
- AccountDomainVerifyInfo
- AccountMailboxInfoDTO
- AccountPermissionsDTO
- AccountPoliciesDTO
- AccountSsoIdProviderDTO
- AccountSsoIdProviderShortDTO
- AccountSsoIdProviderUpdateDTO
- AccountUserDTO
- ActivityLogAction
- ActivityLogObjectType
- ActivityLogRecordDTO
- AliasDTO
- AliasNameDTO
- AppLinks
- AppLocales
- AppPageScripts
- AppTokenDTO
- ApprovalStatusDTO
- ApproverDetailsDTO
- AttachmentFileAllowance
- AttachmentRestriction
- AttributeInfoDTO
- AuditTrailDTO
- AuditTrailInfoRecordDTO
- BasePermissionsDTO
- BillingEventType
- BillingInvoiceStatusDTO
- BillingPaymentDTO
- BillingProperties
- BillingRedirectDTO
- BulkEnvelopeActionDTO
- CallbackEnvelopeFilterDTO
- CategoryDTO
- ChainEnvelopeDTO
- ChangeDomainStatusDTO
- ChunkUploadProps
- CommentAccessDTO
- CommentMessageDTO
- CommentPostDTO
- CommentPutDTO
- CommentThreadDTO
- ConfirmUploadDTO
- ContactDTO
- ContactResponseDTO
- CorporateUserCreateDTO
- CounterInfoDTO
- CreateAppTokenDTO
- CreateEnvelopeCallbackDTO
- CreateRecordsResponseDTO
- CryptoConfigDTO
- CryptoProperties
- DataMap
- DeleteEnvColumnDTO
- DetailedTariffInfoDTO
- DetectedCountryDTO
- DictionaryCheckResponseDTO
- DictionaryColumnRequestDTO
- DictionaryColumnResponseDTO
- DictionaryColumnValueRequestDTO
- DictionaryColumnValueResponseDTO
- DictionaryColumnValueSearchDTO
- DictionaryDownloadParamsDTO
- DictionaryFiltersRequestDTO
- DictionaryRecordValuesResponseDTO
- DictionaryRecordsRequestDTO
- DictionaryRequestDTO
- DictionaryResponseDTO
- DocFormulaRequestDTO
- DocIdSignatureNameDTO
- DocumentCommentsDTO
- DocumentFileForSignRequestDTO
- DocumentForSigningDTO
- DocumentPageSizeDTO
- DocumentsForSignRequestDTO
- EinkSignRestriction
- EmailProperties
- EnvApprovalSearchResultDTO
- EnvCancelDelegationDTO
- EnvCancellationRequestDTO
- EnvDTO
- EnvDelegationDTO
- EnvGetDTO
- EnvPostDTO
- EnvSharedToDTO
- EnvTableRestriction
- EnvelopeApprovalHistoryDTO
- EnvelopeApprovalPageDTO
- EnvelopeApprovalRequestDTO
- EnvelopeApproverDTO
- EnvelopeApproverGetDTO
- EnvelopeCallbackDTO
- EnvelopeCheckResultDTO
- EnvelopeConfirmInviteDTO
- EnvelopeConfirmInviteRoleDTO
- EnvelopeDocumentSignatureDTO
- EnvelopeDocumentSignaturesDTO
- EnvelopeExtraFieldDTO
- EnvelopeFlowInfoDTO
- EnvelopePageDTO
- EnvelopeRestrictions
- EnvelopeScenarioDTO
- EnvelopeSearchField
- EnvelopeSendResultDTO
- EnvelopeSenderDTO
- EnvelopeSharedArchiveRequestDTO
- EnvelopeSharedCopyRequestDTO
- EnvelopeTemplateInfoDTO
- EnvelopeToMailboxDTO
- EnvelopeValidationError
- EnvelopeViewColumn
- EnvelopeWithTemplateDTO
- ExchangeProps
- ExportTaskStatusDTO
- ExternalLinkRequestDTO
- ExternalLinkResponseDTO
- ExternalLinkShortResponseDTO
- FailedEnvelopeCallbackFilterDTO
- FieldRestriction
- FilterDTO
- FilterSettingsCreateDTO
- FilterSettingsDTO
- FullTemplateResponseDTO
- GeolocationInfoDTO
- GeolocationProperties
- GetEnvelopeInviteInfoDTO
- GroupInfoDTO
- GroupListInfoDTO
- ImageRestriction
- ImportTaskDTO
- IntegrationDTO
- IntegrationDefaultRuleDTO
- IntegrationRuleDTO
- IntegrationRuleRequestDTO
- IntegrationRuleResponseDTO
- InvitationPostDTO
- InvitationPutDTO
- InvitedEnvelopeInfoDTO
- LabelAssociationDTO
- LabelDTO
- LocaleItemDTO
- LoginCheckResponseDTO
- LoginDTO
- LoginEnvelopeResponseDTO
- LoginResponseDTO
- LogoImageRestriction
- LogosProperties
- MailboxAccountSimpleDTO
- MailboxApprovalFlowDTO
- MailboxApprovalFlowGetDTO
- MailboxCreateDTO
- MailboxDashboardDTO
- MailboxDelegationDTO
- MailboxEssentialsDTO
- MailboxInfoDTO
- MailboxNameUuidDTO
- MailboxPatchRequestDTO
- MailboxProfileDTO
- MailboxProperties
- MailboxRolePermissionDTO
- MailboxSearchResultDTO
- MailboxSimpleDTO
- MailboxUpdateRequestDTO
- MailboxesSearchFilterDTO
- ModifierInfoDTO
- NameUuidDTO
- NewEnvColumnDTO
- NewTemplateZipStructureDTO
- OAuthProperties
- OneTimeSendDTO
- OperationSource
- PageDTOAccountDomainDTO
- PageDTOAccountMailboxInfoDTO
- PageDTOActivityLogRecordDTO
- PageDTOContactResponseDTO
- PageDTODataMap
- PageDTODictionaryColumnValueResponseDTO
- PageDTODictionaryRecordValuesResponseDTO
- PageDTODictionaryResponseDTO
- PageDTOEnvelopeToMailboxDTO
- PageDTOGroupListInfoDTO
- PageDTOMailboxApprovalFlowGetDTO
- PageDTOObject
- PageDTORoleGetDTO
- PageDTOScenarioShortDTO
- PageDTOSearchTemplateDTO
- PageDTOUsedTemplateDTO
- PageDTOUserInvitationDTO
- PageDTOUserMailboxPermissionsDTO
- PageDTOUserNotificationResponseDTO
- PasswordPolicy
- PdfPageSizes
- PdfPropertiesDTO
- PermissionsDTO
- PermissionsWithUuidDTO
- ProfileDTO
- QuickSendDTO
- QuickSendRecipientDTO
- RecentlyUsedTemplateResponseDTO
- RecommendedTemplateResponseDTO
- RenewPasswordDTO
- ReplaceAccountTariffDTO
- ReportEnvelopeRequestDTO
- ReportMailboxesRequestDTO
- ReportUsersRequestDTO
- RequestValCodeDTO
- RequiredSignatureDTO
- ResetPasswordDTO
- ResolveCommentThreadDTO
- RoleCreateDTO
- RoleGetDTO
- RoleShortDTO
- SamlSsoProps
- ScenarioDTO
- ScenarioShortDTO
- ScenarioShortStepDTO
- ScenarioShortStepTemplateInfoDTO
- ScenarioStepDTO
- ScenarioStepTemplateInfoDTO
- SearchActivityLogDTO
- SearchApprovalsDTO
- SearchEnvelopesDTO
- SearchFieldRestriction
- SearchFieldValueDTO
- SearchRestriction
- SearchTemplateDTO
- SendEnvByCodeDTO
- SessionPolicy
- SettingsDTO
- ShareRestriction
- SharedCodeDTO
- SingleDocForSignRequestDTO
- SingleUuidDTO
- SsoEntityDTO
- SsoProperties
- StampRequestDTO
- StatDTO
- SupportedBarcodeDTO
- TableDetails
- TemplTableRestriction
- TemplateCreateDTO
- TemplateRestriction
- TemplateRolesDTO
- TemplateValidateResponseDTO
- TemplateZipStructureDTO
- TemplateZipStructureTitlesDTO
- UpdateEnvColumnDTO
- UpdateGroupDTO
- UpdatePasswordDTO
- UpdateProfileDTO
- UploadedAttachmentDTO
- UploadedImageDTO
- UploadedPdfDTO
- UsedTemplateDTO
- User2AccountWithMailboxesDTO
- User2MailboxDTO
- UserAuthorizationDTO
- UserCreateByCodeDTO
- UserCreateDTO
- UserDTO
- UserInfoDTO
- UserInvitationDTO
- UserMailboxPermissionsDTO
- UserNotificationResponseDTO
- UserPermissionDTO
- UserProperties
- UsersSearchFilterDTO
- ValidationResponseDTO
- ZipEntityDTO