Quip integration for WordPress
WP Quip
plugin uses WordPress shortcodes to embed Quip documents into WordPress pages and blog posts.
https://codex.wordpress.org/Shortcode
https://codex.wordpress.org/Shortcode_API
-
Upload
wp-quip
folder to the/wp-content/plugins/
directory -
Activate the
WP Quip
plugin through thePlugins
menu in WordPress -
On
Quip Settings
page (menuSettings/WP Quip
), update the default value forTime-to-Live
if needed (see Usage for more details) -
On
Quip Settings
page, enter and saveQuip API Access Token
To generate a Quip API Access Token, visit this page: https://quip.com/dev/token . Whenever you generate a new token, all previous tokens are automatically invalidated.
https://wordpress.org/plugins/wp-quip/
-
In WordPress Admin, search for
WP Quip
plugin and install it -
Activate the
WP Quip
plugin -
On
Quip Settings
page (menuSettings/WP Quip
), update the default value forTime-to-Live
if needed (see Usage for more details) -
On
Quip Settings
page, enter and saveQuip API Access Token
To embed the content of a Quip document into a WordPress page or blog post, use the quip
shortcode.
quip
shortcode accepts two attributes and has the following format:
[quip id="mWnnAszre3MW" ttl=7200]
where
-
id
(Required) - The ID of the Quip document (e.g. https://quip.com/mWnnAszre3MW) -
ttl
(Optional) - Time-To-Live in seconds. After the first request to the Quip API, the plugin caches the content of the document (HTML and images) for the specified amount of time (seconds). All consecutive requests to the same page or blog post will not call the Quip API again but instead will retrieve the document from the internal cache, making the pages faster. After thettl
expires, the plugin will call the Quip API and cache the result again. If thettl
attribute is not provided, the default value of 7200 seconds (2 hours) is used. You can change the default value inQuip Settings
(menuSettings/WP Quip
). Ifttl
is set to0
, the plugin will not cache the Quip API responses, and every request to the WordPress page or blog post will call the Quip API.
NOTE: Setting ttl
to 0
also invalidates the document cache.
This could be used if you change the Quip document and want the changes to be reflected on the website immediately.
In this case, update the document in Quip, set ttl
to 0
in the quip
shortcode,
refresh the WordPress page or blog post in the browser to invalidate the cache,
and then set ttl
back to its original value.
For more information on Quip API, visit https://quip.com/dev/automation/documentation
Got a question?
File a GitHub issue, send us an email or reach out to us on Gitter.
Please use the issue tracker to report any bugs or file feature requests.
If you are interested in being a contributor and want to get involved in developing wp-quip
, we would love to hear from you! Shoot us an email.
In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes
NOTE: Be sure to merge the latest from "upstream" before making a pull request!
APACHE 2.0 © 2017-2018 Cloud Posse, LLC
See LICENSE for full details.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
wp-quip
is maintained and funded by Cloud Posse, LLC. Like it? Please let us know at hello@cloudposse.com
We love Open Source Software!
See our other projects or hire us to help build your next cloud platform.
Erik Osterman |
Andriy Knysh |
---|