From e6ead3c4102fd3749722f8cd20092ce945547645 Mon Sep 17 00:00:00 2001 From: RyanJennings1 Date: Thu, 9 Aug 2018 15:49:56 +0100 Subject: [PATCH] Add missing parameter to new_document function Add missing "type" parameter, listed at https://salesforce.quip.com/dev/automation/documentation#document-post, so you can create spreadsheets or documents using quip api --- python/quip.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/quip.py b/python/quip.py index 92bb7e6..f07df10 100644 --- a/python/quip.py +++ b/python/quip.py @@ -293,7 +293,7 @@ def new_chat(self, message, title=None, member_ids=[]): "member_ids": ",".join(member_ids), }) - def new_document(self, content, format="html", title=None, member_ids=[]): + def new_document(self, content, type="document", format="html", title=None, member_ids=[]): """Creates a new document from the given content. To create a document in a folder, include the folder ID in the list @@ -308,6 +308,7 @@ def new_document(self, content, format="html", title=None, member_ids=[]): "content": content, "format": format, "title": title, + "type": type, "member_ids": ",".join(member_ids), })