跳到主要内容
未找到任何项目。
dropboxsign 徽标
为什么选择 Dropbox Sign?
展开或折叠手风琴

您可以做什么

在线签署文档
创建电子签名
选择或创建模板
填写和签署 PDF
完成线上合同
文档管理
探索功能
向右箭头图标

用例

销售与业务拓展
人力资源
初创公司
金融科技
房地产
按需服务
产品
展开或折叠手风琴
Dropbox 图标
Sign
实现轻松发送和签字
Dropbox 图标
Sign API
将电子签名集成到您的工作流程中
dropbox fax 图标
Fax
无需传真机便能发送传真
dropbox 集成图标
集成
无缝集成助力您轻松工作
资源
展开或折叠手风琴
博客
工作流程专业知识和产品新闻
客户案例
讲述取得实际成果的真实故事
帮助中心
关于我们产品的深入指南
资源库
报告、视频和信息表
开发人员
定价
展开或折叠手风琴
Dropbox Sign 定价
找到适合您的套餐
Dropbox Sign API 定价
讲述取得实际成果的真实故事
与销售人员联系
注册
联系销售人员
登录
展开或折叠手风琴
Dropbox Sign
Dropbox Forms
Dropbox Fax
免费试用版
博客
/
开发人员

Getting Started with the Dropbox Sign API in Python

by 
Luke Russell
April 20, 2021
4
分钟阅读时间
"Getting Started with the Dropbox Sign API in Python" header image
工具提示图标

外观全新但功能同样出色的产品!HelloSign 现为 Dropbox Sign。

关闭图标

Thanks to eSignature tools like Dropbox Sign, you don’t need to align schedules in order to put ink to paper. With a couple lines of Python, you can automate your eSignature workflow, allowing users to obtain legally binding eSignatures on their important documents with just a few clicks while saving them time, money and frustration. To get started, you can visit the Dropbox Sign Developer Portal and start testing for free (no credit card required).


The Dropbox Sign API gives you a powerful arsenal of tools for managing electronic signatures. We'll show you how, in just a few steps, you can begin using Dropbox Sign with Python. This guide will walk you through getting connected to the API and explore one of its most integral features: sending signature requests.


Along the way, you'll build the foundational knowledge needed to begin building out your own Dropbox Sign API workflows. Let's begin!

Get Set Up With Dropbox Sign

Before we dive into making actual API calls, you'll want to get a few things set up.

First, you'll need to create an account. (Note: Dropbox Sign, a Dropbox company, enables Dropbox users to use their existing account to log in)


With your account created, you can grab the credentials to access the API. From the Dropbox Sign web app, click on your username in the top right corner. From the responding dropdown menu, click "My Settings." Then, navigate to the "API" tab. Here you can generate an API key.

Image of the HelloSign API Dashboard, highlighting the location to find your API key

‍

You'll notice a banner that says, "Production access to the Dropbox Sign API requires an API plan." That's why, for this guide, we'll take advantage of the free test mode Dropbox Sign provides.

‍

Prepare Your Python Environment

Now let's set up an environment for making calls with that Dropbox Sign account. For readability, we'll be using the Dropbox Sign Python SDK, but Dropbox Sign supports many other languages. The concepts found within this guide apply to all of them.

‍

First, check to make sure you're using Python 3. Open up a terminal and run the following command:

If it's a version of Python 3, great! If not, you'll need to install Python from the official website. Do so, then run the previous command to ensure it's running on your system.

‍

Now let's install the Dropbox Sign Python SDK. There are a few ways to do so; one way is via pip. From the terminal, run the following command:

If successful, you'll see output that ends in the following line:

You have now installed everything you need to make calls to the Dropbox Sign API. With that, we can get to work in a Python environment.

‍

Open up a text editor (such as VS Code), and insert the following line to import the Dropbox Sign Python SDK:

You’ll need your Dropbox Sign API key in order to instantiate the client. Grab it from your settings page, and insert it within the following line:

If a Dropbox Sign Account object is returned, then you're ready to begin sending signature requests with the API.


Protip: Look for the code snippets on each API method in the Dropbox Sign API Reference documentation

Image showing the code snippets for the HelloSign Python API
Example Request with Python

‍

Send Signature Requests

Sending signature requests with the Dropbox Sign API is done with the Send Signature Request endpoint. Check out the documentation for a full list of optional parameters, but note that the following are required:


Meanwhile, all signers of the file will receive an email that looks like this:

Image of signature request email

‍

Go through and sign the document.

‍

You can then use those IDs to see the status of the signature request. Do so with the Get Signature Request endpoint. You can also use the Dropbox Sign API Dashboard to see API requests and responses. You even have the option of receiving the status of requests via callbacks.


Finally, you can use the API to download the signed copy:

Remember to include the Signature Request ID of your signature request.

‍

Build Your E-signature Workflow

There you have it! In just a few steps, you've sent out a signature request to an email address and then downloaded the signed copy.


So what's next? You can do so much more with the Dropbox Sign API.


First, you might be interested in checking out the Dropbox Sign API public Postman Collection. For further honing your signature requests, there’s a more in-depth Signature Request Walkthrough that introduces you to concepts such as templates and form fields. Of course, to see what else you can do with the API, be sure to check the Developer Portal.

保持更新

完成!请检查您的收件箱。

Thank you!
Thank you for subscribing!

Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Lorem ipsum
向右箭头图标
关闭图标

Up next:

手写签名的特写插图,代表现代数字签名解决方案。
开发人员
15
分钟阅读时间

将 Dropbox Sign 与 Ruby on Rails 集成:分步教程

手写签名的特写插图,代表现代数字签名解决方案。
开发人员
15
分钟阅读时间

Dropbox Sign vs. SignNow for developers

信息图

电子签名 API 可以简化业务流程的 4 种方式

产品
Dropbox SignDropbox Sign APIDropbox Fax集成
为什么选择 Dropbox Sign
电子签名签署文档签署和填写 PDF在线合同创建电子签名签名编辑器签署 Word 文档
支持
帮助中心与销售人员联系联系支持人员管理 Cookie开始使用:Dropbox Sign开始使用:Dropbox Sign API
资源
博客客户案例资源中心合法性指南信任中心
合作伙伴
战略合作伙伴合作伙伴查找工具
公司
招贤纳士条款隐私
Facebook 图标YouTube 图标

接受的付款方式

Mastercard 徽标Visa 徽标American Express 徽标Discover 徽标
CPA 合规标记HIPAA 合规标记Sky High Enterprise Ready 标记ISO 9001 认证标志

在美国、欧盟、英国和世界许多其他地区,Dropbox Sign 电子签名均具有法律约束力。
如需了解更多信息,请查看我们的条款和条件以及隐私政策