ข้ามไปยังเนื้อหาหลัก
ไม่พบรายการ
โลโก้ Dropbox Sign
ทำไมถึงต้องเป็น Dropbox Sign
ขยายหรือซ่อนเนื้อหา

สิ่งที่คุณสามารถทำได้

ลงนามเอกสารออนไลน์
สร้างลายเซ็นอิเล็กทรอนิกส์
เลือกหรือสร้างแม่แบบ
กรอกข้อมูลและลงนามใน PDF
ทำสัญญาออนไลน์ให้เสร็จสมบูรณ์
การจัดการเอกสาร
สำรวจคุณสมบัติ
ไอคอนลูกศรชี้ไปทางขวา

กรณีการใช้งาน

การขายและการพัฒนาธุรกิจ
ทรัพยากรมนุษย์
สตาร์ทอัพ
เทคโนโลยีทางการเงิน
อสังหาริมทรัพย์
บริการตามความต้องการ
ผลิตภัณฑ์
ขยายหรือซ่อนเนื้อหา
ไอคอน Dropbox
Sign
ช่วยให้การส่งและลงนามเป็นเรื่องง่าย
ไอคอน Dropbox
Sign API
ผสาน eSign เข้ากับขั้นตอนการทำงานของคุณ
ไอคอน Dropbox Fax
Fax
ส่งแฟกซ์โดยไม่ต้องใช้เครื่องส่งแฟกซ์
ไอคอนการผสานการทำงานกับ Dropbox
การผนวกรวม
เราพร้อมให้บริการในที่ที่คุณทำงาน
ทรัพยากร
ขยายหรือซ่อนเนื้อหา
บล็อก
ความเชี่ยวชาญด้านขั้นตอนการทำงานและข่าวสารผลิตภัณฑ์
เรื่องราวของลูกค้า
เรื่องราวที่เกิดขึ้นจริงพร้อมผลลัพธ์ที่จับต้องได้
ศูนย์ความช่วยเหลือ
คำแนะนำอย่างละเอียดเกี่ยวกับผลิตภัณฑ์ของเรา
ไลบรารีแหล่งข้อมูล
รายงาน วิดีโอ และเอกสารข้อมูล
นักพัฒนา
ค่าบริการ
ขยายหรือซ่อนเนื้อหา
ราคา Dropbox Sign
หาแผนบริการที่ใช่สำหรับคุณ
ราคา Dropbox Sign API
เรื่องราวที่เกิดขึ้นจริงพร้อมผลลัพธ์ที่จับต้องได้
ติดต่อฝ่ายขาย
ลงทะเบียน
ติดต่อฝ่ายขาย
ลงชื่อเข้าใช้
ขยายหรือซ่อนเนื้อหา
Dropbox Sign
Dropbox Forms
Dropbox Fax
การทดลองใช้ฟรี
บล็อก
/
นักพัฒนา

Using Dropbox Sign API Callbacks

by 
Ana Orozco
December 13, 2019
3
นาที สำหรับการอ่าน
"Using Dropbox Sign API Callbacks" header image
ไอคอนเคล็ดลับเครื่องมือ

รูปลักษณ์โฉมใหม่แต่ยังเป็นผลิตภัณฑ์ที่ยอดเยี่ยมเช่นเดิม! HelloSign เปลี่ยนเป็น Dropbox Sign แล้วตอนนี้

ไอคอนปิด

Let’s start by defining callbacks (otherwise known as webhooks). There are two ways two apps can communicate with each other to share information: polling and callbacks. Polling is like going on a roadtrip and asking the driver “are we there yet?” every 5 minutes. Callbacks are like falling asleep and having the driver wake you up once you are finally there.

‍

Callbacks are automated messages sent from apps to notify that something happened. They have a payload (or body) and are sent to a unique URL.

‍

The Dropbox Sign API sends callbacks for the life cycle of a signature request. Instead of calling the API to check the status of a request, you can listen for these callbacks to build a reliable flow in your application.

‍

Let’s take the example of creating a simple signature request. After you call the “signature_request/create_embedded” endpoint, you receive a response from the API with a status (“200” if it was successful. Otherwise, learn our error messages) and a JSON containing information pertinent to the call you made. This response is useful because it gives you basic information about the request, lets you know that our server received it successfully and there were no issues with the parameters you passed in.

‍

Here is what is happening behind the scenes:

A diagram showing a callback with Dropbox Sign API

‍

If, for example, there was an issue during document processing because the uploaded document has a text tag that is malformed, this is flagged as an error and our API will want to notify you that this happened through a callback event. Wouldn’t it be nice for you to know there was an issue with your file right away instead of having to figure it out the hard way?

‍

This is why it is a best practice to wait for the “signature_request_sent” callback (which only fires once document processing is complete) before attempting to open a sign url in the iFrame. In the case of the error we used as an example, a “file_error” callback will be sent instead. This is how an example of the “file_error” callback event will look like in the API Dashboard:

Screenshot of the "file_error" callback event in the Dropbox Sign API dashboard
Note: to see something like the above, you need to make sure to be logged in with the  Dropbox Sign account that owns the app the requests are being made with.

‍

Another example of when you can benefit from callbacks is downloading the final (signed) document. The “signature_request_all_signed” callback will trigger only after all the signers have completed the document and it’s ready for download. In this case, a best practice is to wait for the “signature_request_all_signed” callback event and then trigger the document download. This ensures that you will get the final copy of the document with all signatures and the “completed” status on the audit trail.

Responding to callbacks

The Dropbox Sign API will send callbacks to whatever URL you tell it to. You can set your account callback by using the account API call or manually on the settings page.

‍

Your endpoint will need to return a 200 HTTP code and a response body containing the following text: “Hello API Event Received.” Otherwise, the callback will be considered a failure and will be retried later. Refer to the “Events and Callbacks” article for more information on this. To illustrate the workflow:

‍

Diagram showing how to respond to callbacks using the Dropbox Sign API

‍

Other resources on this topic:

Example Dropbox Sign API Callback Event

The difference between signature_request_signed and all_signed callback events.

Example Java Callback Handler

Simple PHP Callback Handler

A Simple Python Callback Handler

Example of how to use ngrok (or other localhost tunneling software) to test callback handlers

Tools for Testing the API and Callbacks Locally

ได้รับข้อมูลเสมอ

เสร็จเรียบร้อย! กรุณาตรวจสอบกล่องขาเข้าของคุณ

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

แพ็กเก็ต

ชุดเครื่องมือการว่าจ้างพนักงานที่ยอดเยี่ยม

ผลิตภัณฑ์
Dropbox SignDropbox Sign APIDropbox Faxการผนวกรวม
ทำไมถึงต้องเป็น Dropbox Sign
ลายเซ็นอิเล็กทรอนิกส์ลงนามเอกสารลงนามและกรอกข้อมูลใน PDFสัญญาออนไลน์สร้างลายเซ็นอิเล็กทรอนิกส์โปรแกรมแก้ไขลายเซ็นลงนามในเอกสาร Word
การสนับสนุน
ศูนย์ความช่วยเหลือติดต่อฝ่ายขายติดต่อฝ่ายสนับสนุนจัดการคุกกี้เริ่มต้นใช้งาน Dropbox Signเริ่มต้นใช้งาน Dropbox Sign API
ทรัพยากร
บล็อกเรื่องราวของลูกค้าศูนย์ทรัพยากรคู่มือการปฎิบัติตามกฎหมายศูนย์ความไว้วางใจ
พันธมิตรทางธุรกิจ
พันธมิตรเชิงกลยุทธ์ตัวระบุตำแหน่งพันธมิตร
บริษัท
ร่วมงานกับเราเงื่อนไขความเป็นส่วนตัว
ไอคอน Facebookไอคอน Youtube

วิธีการชำระเงินที่ยอมรับ

โลโก้ Mastercardโลโก้ Visaโลโก้ American Expressโลโก้ Discover
ป้ายการปฏิบัติตามข้อกำหนดของ CPAป้ายการปฏิบัติตามข้อกำหนดของ HIPAAป้าย Sky High Enterprise Readyป้ายการรับรองตามมาตรฐาน ISO 9001

ลายเซ็นอิเล็กทรอนิกส์ของ Dropbox Sign มีผลผูกพันทางกฎหมายในสหรัฐอเมริกา สหภาพยุโรป สหราชอาณาจักร และในหลายประเทศทั่วโลก
สำหรับข้อมูลเพิ่มเติม โปรดดูข้อตกลงและเงื่อนไขและนโยบายความเป็นส่วนตัวของเรา