Code Monkey home page Code Monkey logo

pandadoc_scripts's Introduction

PandaDoc Scripts

Install

You'll need a working Ruby environment on your machine (I use rbenv to manage mine). From there:

$ bundle

You'll be asked for your PandaDoc access token, which you can create in the integraions tab of your account settings.

Detect partially-signed documents

It's hard to get a notification from PandaDoc when a customer/external recipient signs a document, which can result in forgetting to sign it yourself. This script will review all your outstanding documents to identify ones where external recipients have signed but not all internal recipients have yet.

$ ./script/detect_partially_signed_documents

It will ask for your PandaDoc API Key (and then save it in your keychain for subsequent runs), as well as your company's e-mail domain (to separate internal signers and external recipients).

If any documents need to be signed by internal signers, the script output will look like this:

$ ./script/detect_partially_signed_documents --internal-domain testdouble.com
-> Fetching details on 15 unsigned documents
-> API request throttled, waiting 54 seconds
-> Warning: Document "NDA - FAKE TESTING ONLY"
     has been signed by recipient(s) [email protected],
     but has NOT been signed by [email protected]

   Document URL:
   https://app.pandadoc.com/a/#/documents/asodjsado908

The script can also be run non-interactively with command line options like this:

$ ./script/detect_partially_signed_documents --api-key abcdef1234 --internal-domain testdouble.com

You can see available command-line options with the --help option:

pandadoc_scripts's People

Contributors

searls avatar

Watchers

Todd Kaufman avatar James Cloos avatar Christine McCallum-Randalls avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.