docusign怎么用

DocuSign is a platform for the online signing of documents, legal agreements where you as an application owner or developer can send documents to the end-users for signing process after approval/consent from DocuSign & users can sign with their own electronic signature.

DocuSign是用于文档在线签署,法律协议的平台,您可以作为应用程序所有者或开发人员在经过DocuSign批准/同意后将文档发送给最终用户以进行签名过程,并且用户可以使用自己的电子签名进行签名。

Remote Signing
远程签名

定价和计划 (Pricing And Plans)

Docusign comes with a three plan Personal, Standard, and Business Pro plans.

Docusign附带了三个计划,即Personal,Standard和Business Pro计划。

Apart from document signing, DocuSign offers features like reminder notifications, payment gateway, bulk-sending of templates to multiple users in premium plans.

除文档签名外,DocuSign还提供提醒通知,付款网关,将模板批量发送给高级计划中的多个用户的功能。

Go through below link for details :

通过以下链接了解详细信息:

入门 (Getting Started)

Gem Used : docusign_esign

使用的宝石 :docusign_esign

gem 'docusign_esign'bundle install

Account and keys setup :

帐户和密钥设置

  1. Signup: create your DocuSign account

    注册 :创建您的DocuSign帐户

  2. Login to your demo account

    登录到您的模拟账户

  3. Account ID (Click on upper right avatar and get your account id)
    帐户ID(点击右上角的头像并获取您的帐户ID)
  4. Get Integration key (Go to settings -> Integration -> API and Keys -> My Apps / Integration Keys -> Add key). Also, copy the user-id and base-URI listed on the same page.
    获取集成密钥(转到设置->集成-> API和密钥->我的应用程序/集成密钥->添加密钥)。 另外,复制同一页面上列出的用户ID和基本URI。
  5. In the My Apps / Integration Keys section on API and Keys page click on Actions -> Edit. Now, in the service integration section add RSA key and copy the public key and private key in config/public_key.txt & config/private_key.txt respectively.
    在“ API和密钥”页面上的“我的应用程序/集成密钥”部分中,单击“操作”->“编辑”。 现在,在“服务集成”部分中,添加RSA密钥,并将公共密钥和私有密钥分别复制到config / public_key.txt和config / private_key.txt中。
  6. In additional settings, add a redirect URL to get redirected to the application after getting DocuSign consent. For local development http://localhost:3000/***.

    在其他设置中,添加重定向URL以在获得DocuSign同意后重定向到应用程序。 对于本地开发,请ttp:// localhost:3000 / ***。

  7. Now, add all the keys in application.yml or .env of your application.
    现在,将所有密钥添加到应用程序的application.yml或.env中。
BASE_URL: 'http://localhost:3000'DOCUSIGN_USERNAME: '****@gmail.com'DOCUSIGN_PASSWORD: '*******'DOCUSIGN_INTEGRATION_KEY: 'e8**-2***-7***-6***-a********'DOCUSIGN_ACCOUNT_ID: '11*****'DOCUSIGN_USER_ID: '8******-1***-4***-9***-e********'DOCUSIGN_ENDPOINT: 'http://demo.docusign.net/restapi'DOCUSIGN_API_VERSION: 'v2'DOCUSIGN_AUTH_SERVER: 'account-d.docusign.com'

DocuSign在应用程序中的集成: (DocuSign Integration in Application :)

There are two ways in which the signing process can be executed:

有两种执行签名过程的方式:

  1. Remote Signing (Signing via mail)
    远程签名(通过邮件签名)
  2. Embedded signing (Signing within the application)
    嵌入式签名(在应用程序内签名)

I will go deep down into integrating the remote signing process while for embedded signing you can check the launcher code example here.

我将深入集成远程签名过程,而对于嵌入式签名,您可以在此处查看启动器代码示例。

Firstly, create some templates on your remote account to be sent to the end-users within an envelope for signing.

首先,在您的远程帐户上创建一些模板,以在信封内发送给最终用户进行签名。

Step 1. Get Docusign Consent for application :

步骤1.获得Docusign同意进行申请:

(I have used gem Figaro for keys configuration)

(我已经使用了Figaro宝石来进行按键配置)

integration_key = Figaro.env.DOCUSIGN_INTEGRATION_KEYredirect_uri = "#{Figaro.env.BASE_URL}"consent_scopes = "signature%20impersonation"path = "https://#{Figaro.env.DOCUSIGN_AUTH_SERVER}/oauth/auth?response_type=code&scope=#{consent_scopes}&client_id=#{integration_key}&redirect_uri=#{redirect_uri}"redirect_to path

After getting authorized, DocuSign redirects back to the redirect URI.

获得授权后,DocuSign重定向回到重定向URI。

Step 2. Initiate api_client object

步骤2. 启动api_client对象

template_name = 'template name' #search name from remoteconfiguration = DocuSign_eSign::Configuration.newconfiguration.host = base_pathapi_client = DocuSign_eSign::ApiClient.new(configuration)

Step 3. Get JWT bearer token

步骤3. G et JWT承载令牌

base_path = Figaro.env.DOCUSIGN_ENDPOINTintegrator_key = Figaro.env.DOCUSIGN_INTEGRATION_KEYuser_id = Figaro.env.DOCUSIGN_USER_IDexpires_in_seconds = 5000api_client.set_base_path(base_path)private_key_filename = File.join(Rails.root, 'config', 'private_key.txt')bearer_token = api_client.request_jwt_user_token(integrator_key, user_id, private_key_filename, expires_in_seconds)

Step 4. Access template from remote

步骤4.从远程访问模板

@template_name = template_nametemplates_api = DocuSign_eSign::TemplatesApi.new api_clientoptions = DocuSign_eSign::ListTemplatesOptions.newoptions.search_text = @template_nameresults = templates_api.list_templates(Figaro.env.DOCUSIGN_ACCOUNT_ID, options)template_id = results.envelope_templates[0].template_id

Step 5. Create envelope definition and send to end user via mail

步骤5.创建信封定义并通过邮件发送给最终用户

user = current_userenvelope_definition= DocuSign_eSign::EnvelopeDefinition.new({status:     'sent', templateId: template_id, emailSubject: 'Document Signing'})signer = DocuSign_eSign::TemplateRole.new({email: user.email, name: user.full_name, roleName: 'signer'})signer.name = 'Default User' unless signer.name.present?envelope_definition.template_roles = [signer]envelopes_api = DocuSign_eSign::EnvelopesApi.new(api_client)result = envelopes_api.create_envelope(account_id, envelope_definition)

That’s it! an email with an envelope containing metadata and template to get signed is sent successfully to the user.

而已! 带有包含要签名的元数据和模板的信封的电子邮件已成功发送给用户。

DocuSign连接 (DocuSign Connect)

Get notified when users review or complete the signing process and hence update your database in your application.

当用户查看或完成签名过程并因此在您的应用程序中更新数据库时得到通知。

For this purpose, I added a webhook in my application which gets called every time the envelope status changes like sent, delivered, completed, declined, voided.

为此,我在应用程序中添加了一个Webhook,每次信封状态更改(例如发送,交付,完成,拒绝,作废)时都会调用该Webhook。

Configuring Connect

配置连接

  1. Go to Settings -> Integration -> Connect
    转到设置->集成->连接
  2. Add webhook URL -> https://3b******.ngrok.io/webhooks

    添加webhook URL-> https://3b******.ngrok.io/webhooks

(I added ngrok URL as connect accepts https secured URL only)

(我添加了ngrok URL,因为connect仅接受https保护的URL)

3. Now, add events to get triggered and save.

3.现在,添加事件以触发并保存。

Coming to the code ..

来到代码..

resp = Hash.from_xml(request.raw_post)envelope_id = resp["DocuSignEnvelopeInformation"]["EnvelopeStatus"]["EnvelopeID"]envelope = Envelope.find_by(envelope_id: envelope_id)envelope.update(status: resp["DocuSignEnvelopeInformation"]["EnvelopeStatus"]["Status"].downcase)

上线:查看以下链接以使用DocuSign上线。 (Go LIVE: Check out the below link to go live with DocuSign.)

翻译自: https://medium.com/@gunjansolanki_007/docusign-integration-on-ruby-on-rails-b384405aef37

docusign怎么用

http://www.taodudu.cc/news/show-4963954.html

相关文章:

  • DocuSign沙盒 C#,SDK的使用demo
  • DocuSign网站用户资料泄露,病毒团伙利用邮件疯狂作恶
  • PE盘装系统时无法找到ISO文件
  • linux系统有pe盘么,原来如此,Linux系统也有PE,不过它叫...
  • 机器视觉,halcon项目源码,视觉检测和视觉测量源码
  • 编码结构光三维视觉测量系统(二)
  • 视觉测量方法
  • 机器视觉测量拟合中级篇,halcon实战,measure测量助手
  • 【机器视觉-卡尺测量、间距检测】
  • 视觉测量检测系统 【附带全部源代码】
  • 基于摄像机内部协作的双目视觉测量系统
  • python 机器视觉测量_python OpenCV 宽度测量
  • 视觉测量—相机与镜头选型
  • 机器视觉测量技术真的简单吗
  • 3DM视觉测量技术的应用及发展
  • 双目立体视觉测量零件的高度
  • 毕业设计-基于机器视觉的高精度视觉测量系统设计- OpenCV
  • vue实现后台实时编辑预览页面,小程序端展示
  • Eviews软件中不显示且不能输入数据
  • Eviews软件工具——线性回归模型(超详细版本)
  • ue4 技能冷却图标实现
  • Unity中简单冲刺技能,加技能图标倒计时UI制作
  • 类型多样的技能游戏素材素材,速来收藏
  • Unreal Engine 4 —— GAS系统学习 (二十一) 为主角添加技能图标
  • MMO技能系统设计
  • 技能冷却图标实现
  • 实现技能CD
  • Unity技能CD的冷却效果实现
  • Android技能树-四大组件-Intent-FAQ-桌面图标
  • unity实现物品或技能图标的拖拽功能

docusign怎么用_轨道上的Ruby上的docusign集成相关推荐

  1. 腾讯视频下载安装免费装到手机_腾讯视频怎么上传个人本地视频

    不管这个腾讯视频好用与否,都有一大批用户,本文播放器家园网小编分享腾讯视频下载安装免费装到手机_腾讯视频怎么上传个人本地视频.VIP会员频道聚合海量VIP品质内容,连续签到解锁惊喜奖励.摇一摇抽VIP ...

  2. 在Mac上安装Ruby on Rails

    前两天写了博文提到安装Ruby on Rails时系统没有响应的问题,后来就有人问我在Mac上安装Ruby on Rails的完整过程,所以记录在这里,供大家参考. 1. 安装xCode的Comman ...

  3. ruby 程序员修炼之道_面向系统管理员的Ruby

    Ruby是功能丰富,免费,简单,可扩展,可移植且面向对象的脚本语言. 最近它在全球Web上获得了极大的普及. 这种流行至少可以部分归因于用Ruby编写的非常强大的Web应用程序开发框架Rails. R ...

  4. 编程模拟飞船加速变轨过程-物理基础篇(3)Kepler轨道及其描述(上)

    编程模拟飞船加速变轨过程物理基础篇(3) Kepler轨道及其描述(上) 开普勒轨道及其描述是用若干要素表示出飞船在地球中心引力场中绕地球飞行具体形状的一种方法,我们希望在已知这些要素的前提下精确的描 ...

  5. php 上传乱码_如何解决php文件上传中文乱码问题

    php文件上传中文乱码的解决办法:首先打开相应的PHP文件:然后通过"iconv("UTF-8", "gbk",$name)"方法对文件名进 ...

  6. formdata上传文件_大文件分片断点上传实现思路以及方案

    作者:yeyan1996| 来源:掘金https://juejin.im/post/5dff8a26e51d4558105420ed 前言 我在面试的时候确实被问到了这个问题,而且是一道在线 codi ...

  7. 上传文件_.net core进行文件上传

    .net core 和.net framework上传文件还是有一些区别的有很多注意的地方 .net framework 上传文件用httppostedfilebase .net core 上传文件用 ...

  8. dropzonejs vue 使用_如何在Dropzone上手动触发上传文件事件

    我将Dropzonejs很好地集成到了我的前端(VueJS)中.如何在Dropzone上手动触发上传文件事件 我有验收测试Dropzone使用Webdriver/Codeception的问题.底线是W ...

  9. springboot 上传文件_基于SpringBoot的文件上传

    在实际的企业开发中,文件上传是最常见的功能之一,SpringBoot集成了SpringMVC常用的功能,当然也包含了文 件上传的功能,实现起来没有太多的区别. 下面我们来讲解一下,使用SpringBo ...

最新文章

  1. html 自定义字段,HTML 标签自定义属性的问题
  2. matlab识别图像,基于MATLAB神经网络图像识别的高识别率代码
  3. yuzu模拟器linux,Yuzu Early Acces
  4. 【原创】多dpi适配的新姿势
  5. linux算法设计,嵌入式Linux平台下随机序列算法设计.doc
  6. C++设置不定参数方法 简单示例
  7. 我写的第一个jquery插件:jquery.photoFrame(version 0.2)
  8. Android TextView动态设置字体颜色选择器
  9. android模拟器安装教程视频教程,安卓模拟器安装教程 安卓模拟器怎么安装
  10. java 支付宝预下单失败,系统异常,预下单状态未知!!! connect timed out
  11. 新手使用VS2013时常遇问题及解决方法
  12. 文件夹变exe怎么办
  13. 蓝牙车载 linux,《基于嵌入式Linux蓝牙在车载电子系统中的应用》.pdf
  14. 易宝典——玩转O365中的EXO服务 之三十七 保留所有邮箱
  15. [unity3d] iTween文档解析(2) (iTween方法和属性)
  16. 神经网络实现手写数字识别
  17. VMware运行虚拟机卡慢等解决办法
  18. 000 我和网安的故事.doc
  19. 沟通的技巧与训练方式
  20. 【三国演义】——赵云

热门文章

  1. Photoshop文字之——打造肌理文字—意象中国
  2. 解放双手!用这个“神器“结合ArcGIS让建筑数据自动矢量化
  3. 74HC595 8位移位寄存器的使用小结
  4. android pda 扫码demo,android 关于PDA条形码的开发demo
  5. 《国富论》阅读笔记04
  6. 指令集CEO潘爱民做客《数字浙江》 畅谈物联网发展
  7. Mac cocoapods安装步骤
  8. 如何进行BI工具的选型?2019必看的商业智能工具选型参考
  9. 理财产品信息管理系统(参考答案)
  10. 饲料配方软件最新修改方案