定制 ets/echosign-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ets/echosign-bundle

Composer 安装命令:

composer require ets/echosign-bundle

包简介

EchoSign Bundle contains methods to interact with EchoSign WebServices

README 文档

README

ETSEchoSignBundle provides a wrapper to EchoSign APIs: https://secure.echosign.com/public/docs/EchoSignDocumentService16

Build Status Scrutinizer Code Quality SensioLabsInsight

Installation

You can install the bundle by using composer.

composer.phar require ets/echosign-bundle

Use dev-master when it asks which version to install.

##Enabling the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new ETS\EchoSignBundle\ETSEchoSignBundle()
    );
}

Configuration

The bundle requires mandatory parameters, in your config.yml:

ets_echo_sign:
    api:
        key:  YOUR_API_KEY
        gateway:  ECHOSIGN_API_GATEWAY #e.g: https://secure.echosign.com/services/EchoSignDocumentService16
        wsdl:  ECHOSIGN_API_WSDL_URL #e.g: https://secure.echosign.com/services/EchoSignDocumentService16?wsdl

You could also activate the debug option:

ets_echo_sign:
    debug:
        prefix:  YOUR_PREFIX

It does nothing more than adding the prefix to the filename when uploading. Since EchoSign offers no way to organize your files, the prefix should help you classify uploaded files in a "cleaner" way. For example, you could have a prefix "DEV_" for local development, "PREPROD_" for preprod environment.

And you have to specify a list of email addresses to use as recipients:

ets_echo_sign:
    recipients:  [email1@corp.com]

Available APIs

Client service offers wrappers to the most used methods:

  • sendDocument
  • getDocumentInfo
  • removeDocument
  • getMyDocuments

To send a document:

$recipients = new RecipientInfoCollection('recipient@test.com');
$fileCollections = new FileInfoCollection();
$fileCollections->addFileInfo(new FileInfo('file.pdf', 'file.pdf'));
$documentCreationInfo = new DocumentCreationInfo($recipients, 'Test document', $fileCollections);
$this->getContainer()->get('ets.echo.sign.client')->sendDocument($documentCreationInfo);

The method returns the document key of the newly uploaded file

To get info on a document

$this->getContainer()->get('ets.echo_sign.client')->getDocumentInfo($documentKey);

If the document doesn't exist, it will return null instead of a SoapFault exception as implemented by the original API.

To remove a document

$this->getContainer()->get('ets.echo_sign.client')->removeDocument($documentKey);

To retrieve all documents

$this->getContainer()->get('ets.echo_sign.client')->getMyDocuments();

Code License:

Resources/meta/LICENSE

统计信息

  • 总下载量: 4.07k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 32
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2013-06-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固