Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7a7d66f
Modify .gitignore
Jul 16, 2018
70917fc
Update quip.py with latest changes from quip repository
Jul 17, 2018
1ebbe0f
Tweaks to make websocket example work for python 2 & 3
Jul 18, 2018
12254a4
Minor fix to enable python3 in baqup
Jul 17, 2018
71e415a
Fix api failure in edit_document
Jul 30, 2018
3df38db
Add test.sh and auth.py
Aug 2, 2018
9458aff
Add link to quip.py
Aug 2, 2018
9cda2df
Cleamup unnecessary files
Nov 3, 2018
ae58d16
Add get_matching_threads() function to QuipClient
Jan 24, 2019
0224cd7
Update quip client with new copy-document and delete endpoints
Feb 4, 2019
592b361
Fix typo in README
jrnold Feb 5, 2019
56c91bc
Merge pull request #57 from jrnold/patch-1
plinehan Feb 5, 2019
cfa97b9
Fix typos in copy_document function
Feb 5, 2019
3c59c1f
Remove `pin_to_desktop` in quip-api repo
ZimuW Apr 1, 2019
7cb10ea
Update README
Oct 9, 2019
dfce1a8
Fix only_match_titles in search thread function
dengzb Oct 17, 2019
b21e67f
Merge pull request #63 from dengzb/master
plinehan Oct 17, 2019
e3f7260
Python requirements.txt file added to the websocket example. The requ…
emerdan Feb 22, 2020
ba0c641
Add events-api quaratine demo.
craink May 12, 2020
430b8eb
Add hyperlink to Admin API documentation for Events API.
craink May 12, 2020
0d05606
nit: hyperlink and misspelling
craink May 12, 2020
69550a7
Add community link in README
kenichi-ando Jun 12, 2020
3f2dd39
Add support for 'MessageType' and corresponding 'messageType' paramet…
Oct 18, 2020
83a9b89
Merge pull request #78 from dclaze/master
Oct 19, 2020
d5cc866
Remove sample project mail2quip
Nov 11, 2020
4cb9df2
Merge pull request #82 from quip/tyin/remove-mail2quip
Nov 11, 2020
19f3b32
remove outdated sample app.
Mar 5, 2021
c5160e8
enable-checkpoint
tptag Apr 1, 2025
5b7c671
Merge pull request #126 from quip/tagarwal-enable-checkpoint
davidmreed Apr 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
__pycache__
*.pyc
*~
*.DS_Store
Expand Down
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
Quip Automation API
===================

## NOTE: If you're looking for the Quip Live Apps repository, it lives at https://github.com/quip/quip-apps


This is the official repository for the [Quip Automation API](https://quip.com/api/).


* [Quip Automation API Reference](https://quip.com/api/reference)
* [Get a Personal Automatoin API Access Token](https://quip.com/api/personal-token)
* [Get a Personal Automation API Access Token](https://quip.com/api/personal-token)

## Client Libraries

Expand All @@ -23,18 +19,14 @@ This is the official repository for the [Quip Automation API](https://quip.com/a
* [Ruby](https://github.com/jacamat/quip-ruby) (from [@jacamat](https://github.com/jacamat))
* [Go](https://github.com/mduvall/go-quip) (from [@mduvall](https://github.com/mduvall))
* [Elixir](https://github.com/mmartinson/e_quip) (from [@mmartinson](https://github.com/mmartinson))
* [Java](https://github.com/kenichi-ando/quip-api-java) (from [@kenichi-ando](https://github.com/kenichi-ando))

## Sample Apps

### Official

* [`baqup`](samples/baqup): Exports all of your Quip folders, documents and messages to a local directory. _Python on the command line_
* [`mail2quip`](samples/mail2quip): Create Quip messages by email. [Sample server](http://mail2quip.appspot.com/). _Python on App Engine_
* [`twitterbot`](samples/twitterbot): Post Twitter messages to a Quip thread via the Twitter streaming API. _Python on the command line_
* [`webhooks`](samples/webhooks): Inbound [Webhook](http://en.wikipedia.org/wiki/Webhook) support for posting GitHub, Crashlytics, PagerDuty and other service notifications to threads. _Python on App Engine_
* [`wordpress`](samples/wordpress): Publish Quip documents to [WordPress](http://wordpress.org/). _Python on the command line_
* [`websocket`](samples/websocket): Receive messages from Quip in real time. _Python on the command line_

### Community

* [`quiptree`](https://github.com/kwent/quiptree): Browser extension to display Quip folders and files in tree format. _Javascript on Browser Extension Engine_
16 changes: 14 additions & 2 deletions nodejs/quip.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ var Operation = {
DELETE_SECTION: 5
};

/**
* Message Type
* @enum {string}
*/
var MessageType = {
MESSAGE: 'message',
EDIT: 'edit'
};

/**
* A Quip API client.
*
Expand Down Expand Up @@ -224,13 +233,15 @@ Client.prototype.removeFolderMembers = function(options, callback) {
/**
* @param {{threadId: string,
* maxUpdatedUsec: (number|undefined),
* count: (number|undefined)}} options
* count: (number|undefined)
* messageType: (MessageType|undefined)}} options
* @param {function(Error, Object)} callback
*/
Client.prototype.getMessages = function(options, callback) {
this.call_('messages/' + options.threadId + '?' + querystring.stringify({
'max_updated_usec': options.maxUpdatedUsec,
'count': options.count
'count': options.count,
'message_type': options.messageType
}), callback);
};

Expand Down Expand Up @@ -418,5 +429,6 @@ ClientError.prototype = Object.create(Error.prototype);

exports.Color = Color;
exports.Operation = Operation;
exports.MessageType = MessageType;
exports.Client = Client;
exports.ClientError = ClientError;
Loading