mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-25 12:44:07 +01:00
602 lines
28 KiB
HTML
602 lines
28 KiB
HTML
<!DOCTYPE html>
|
|
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
|
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Gmail v2.0.0+20210322</title>
|
|
|
|
|
|
|
|
<link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
|
|
|
|
<link rel="stylesheet" href="./css/theme.css" type="text/css" />
|
|
<link rel="stylesheet" href="./css/theme_extra.css" type="text/css" />
|
|
<link rel="stylesheet" href="./css/highlight.css">
|
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
|
|
<script type="text/javascript" src="./js/highlight.pack.js"></script>
|
|
<script src="./js/theme.js"></script>
|
|
|
|
<style>
|
|
body {font-size: 90%;}
|
|
pre, code {font-size: 100%;}
|
|
h3, h4, h5, h6 {color: #2980b9; font-weight: 300}
|
|
</style>
|
|
</head>
|
|
|
|
<body class="wy-body-for-nav" role="document">
|
|
|
|
<div class="wy-grid-for-nav">
|
|
|
|
|
|
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
|
|
<div class="wy-side-nav-search">
|
|
<a href="." class="icon icon-home"> Gmail v2.0.0+20210322</a>
|
|
|
|
</div>
|
|
|
|
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
|
<ul class="current">
|
|
|
|
|
|
<span>Users</span>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_drafts-create/">Drafts Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_drafts-delete/">Drafts Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_drafts-get/">Drafts Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_drafts-list/">Drafts List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_drafts-send/">Drafts Send</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_drafts-update/">Drafts Update</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_get-profile/">Get Profile</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_history-list/">History List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_labels-create/">Labels Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_labels-delete/">Labels Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_labels-get/">Labels Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_labels-list/">Labels List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_labels-patch/">Labels Patch</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_labels-update/">Labels Update</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_messages-attachments-get/">Messages Attachments Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_messages-batch-delete/">Messages Batch Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_messages-batch-modify/">Messages Batch Modify</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_messages-delete/">Messages Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_messages-get/">Messages Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_messages-import/">Messages Import</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_messages-insert/">Messages Insert</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_messages-list/">Messages List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_messages-modify/">Messages Modify</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_messages-send/">Messages Send</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_messages-trash/">Messages Trash</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_messages-untrash/">Messages Untrash</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-delegates-create/">Settings Delegates Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-delegates-delete/">Settings Delegates Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-delegates-get/">Settings Delegates Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-delegates-list/">Settings Delegates List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-filters-create/">Settings Filters Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-filters-delete/">Settings Filters Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-filters-get/">Settings Filters Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-filters-list/">Settings Filters List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-forwarding-addresses-create/">Settings Forwarding Addresses Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-forwarding-addresses-delete/">Settings Forwarding Addresses Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-forwarding-addresses-get/">Settings Forwarding Addresses Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-forwarding-addresses-list/">Settings Forwarding Addresses List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-get-auto-forwarding/">Settings Get Auto Forwarding</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-get-imap/">Settings Get Imap</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-get-language/">Settings Get Language</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-get-pop/">Settings Get Pop</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-get-vacation/">Settings Get Vacation</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-send-as-create/">Settings Send As Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-send-as-delete/">Settings Send As Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-send-as-get/">Settings Send As Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-send-as-list/">Settings Send As List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-send-as-patch/">Settings Send As Patch</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-send-as-smime-info-delete/">Settings Send As Smime Info Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-send-as-smime-info-get/">Settings Send As Smime Info Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-send-as-smime-info-insert/">Settings Send As Smime Info Insert</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-send-as-smime-info-list/">Settings Send As Smime Info List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-send-as-smime-info-set-default/">Settings Send As Smime Info Set Default</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-send-as-update/">Settings Send As Update</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-send-as-verify/">Settings Send As Verify</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-update-auto-forwarding/">Settings Update Auto Forwarding</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-update-imap/">Settings Update Imap</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-update-language/">Settings Update Language</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-update-pop/">Settings Update Pop</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_settings-update-vacation/">Settings Update Vacation</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_stop/">Stop</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_threads-delete/">Threads Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_threads-get/">Threads Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_threads-list/">Threads List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_threads-modify/">Threads Modify</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_threads-trash/">Threads Trash</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_threads-untrash/">Threads Untrash</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="users_watch/">Watch</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
|
|
|
|
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
|
<i data-toggle="wy-nav-top" class="icon icon-reorder"></i>
|
|
<a href="."></a>
|
|
</nav>
|
|
|
|
|
|
<div class="wy-nav-content">
|
|
<div class="rst-content">
|
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
|
<ul class="wy-breadcrumbs">
|
|
<li><a href=".">Docs</a> »</li>
|
|
<li>Home</li>
|
|
<li class="wy-breadcrumbs-aside">
|
|
|
|
|
|
<a href="https://github.com/Byron/google-apis-rs/tree/master/gen/gmail1-cli" class="icon icon-github"> Edit on GitHub</a>
|
|
|
|
|
|
</li>
|
|
</ul>
|
|
<hr/>
|
|
</div>
|
|
<div role="main">
|
|
<div class="section">
|
|
<!---
|
|
DO NOT EDIT !
|
|
This file was generated automatically from 'src/mako/cli/README.md.mako'
|
|
DO NOT EDIT !
|
|
-->
|
|
|
|
<p>The <code>gmail1</code> command-line interface <em>(CLI)</em> allows to use most features of the <em>Google Gmail</em> service from the comfort of your terminal.</p>
|
|
<p>By default all output is printed to standard out, but flags can be set to direct it into a file independent of your shell's
|
|
capabilities. Errors will be printed to standard error, and cause the program's exit code to be non-zero.</p>
|
|
<p>If data-structures are requested, these will be returned as pretty-printed JSON, to be useful as input to other tools.</p>
|
|
<p>Everything else about the <em>Gmail</em> API can be found at the
|
|
<a href="https://developers.google.com/gmail/api/">official documentation site</a>.</p>
|
|
<h1 id="installation-and-source-code">Installation and Source Code</h1>
|
|
<p>Install the command-line interface with cargo using:</p>
|
|
<pre><code class="bash">cargo install google-gmail1-cli
|
|
</code></pre>
|
|
|
|
<p>Find the source code <a href="https://github.com/Byron/google-apis-rs/tree/master/gen/gmail1-cli">on github</a>.</p>
|
|
<h1 id="usage">Usage</h1>
|
|
<p>This documentation was generated from the <em>Gmail</em> API at revision <em>20210322</em>. The CLI is at version <em>2.0.0</em>.</p>
|
|
<pre><code class="bash">gmail1 [options]
|
|
users
|
|
drafts-create <user-id> (-r <kv>)... (-u simple -f <file> [-m <mime>]) [-p <v>]... [-o <out>]
|
|
drafts-delete <user-id> <id> [-p <v>]...
|
|
drafts-get <user-id> <id> [-p <v>]... [-o <out>]
|
|
drafts-list <user-id> [-p <v>]... [-o <out>]
|
|
drafts-send <user-id> (-r <kv>)... (-u simple -f <file> [-m <mime>]) [-p <v>]... [-o <out>]
|
|
drafts-update <user-id> <id> (-r <kv>)... (-u simple -f <file> [-m <mime>]) [-p <v>]... [-o <out>]
|
|
get-profile <user-id> [-p <v>]... [-o <out>]
|
|
history-list <user-id> [-p <v>]... [-o <out>]
|
|
labels-create <user-id> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
labels-delete <user-id> <id> [-p <v>]...
|
|
labels-get <user-id> <id> [-p <v>]... [-o <out>]
|
|
labels-list <user-id> [-p <v>]... [-o <out>]
|
|
labels-patch <user-id> <id> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
labels-update <user-id> <id> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
messages-attachments-get <user-id> <message-id> <id> [-p <v>]... [-o <out>]
|
|
messages-batch-delete <user-id> (-r <kv>)... [-p <v>]...
|
|
messages-batch-modify <user-id> (-r <kv>)... [-p <v>]...
|
|
messages-delete <user-id> <id> [-p <v>]...
|
|
messages-get <user-id> <id> [-p <v>]... [-o <out>]
|
|
messages-import <user-id> (-r <kv>)... (-u simple -f <file> [-m <mime>]) [-p <v>]... [-o <out>]
|
|
messages-insert <user-id> (-r <kv>)... (-u simple -f <file> [-m <mime>]) [-p <v>]... [-o <out>]
|
|
messages-list <user-id> [-p <v>]... [-o <out>]
|
|
messages-modify <user-id> <id> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
messages-send <user-id> (-r <kv>)... (-u simple -f <file> [-m <mime>]) [-p <v>]... [-o <out>]
|
|
messages-trash <user-id> <id> [-p <v>]... [-o <out>]
|
|
messages-untrash <user-id> <id> [-p <v>]... [-o <out>]
|
|
settings-delegates-create <user-id> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
settings-delegates-delete <user-id> <delegate-email> [-p <v>]...
|
|
settings-delegates-get <user-id> <delegate-email> [-p <v>]... [-o <out>]
|
|
settings-delegates-list <user-id> [-p <v>]... [-o <out>]
|
|
settings-filters-create <user-id> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
settings-filters-delete <user-id> <id> [-p <v>]...
|
|
settings-filters-get <user-id> <id> [-p <v>]... [-o <out>]
|
|
settings-filters-list <user-id> [-p <v>]... [-o <out>]
|
|
settings-forwarding-addresses-create <user-id> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
settings-forwarding-addresses-delete <user-id> <forwarding-email> [-p <v>]...
|
|
settings-forwarding-addresses-get <user-id> <forwarding-email> [-p <v>]... [-o <out>]
|
|
settings-forwarding-addresses-list <user-id> [-p <v>]... [-o <out>]
|
|
settings-get-auto-forwarding <user-id> [-p <v>]... [-o <out>]
|
|
settings-get-imap <user-id> [-p <v>]... [-o <out>]
|
|
settings-get-language <user-id> [-p <v>]... [-o <out>]
|
|
settings-get-pop <user-id> [-p <v>]... [-o <out>]
|
|
settings-get-vacation <user-id> [-p <v>]... [-o <out>]
|
|
settings-send-as-create <user-id> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
settings-send-as-delete <user-id> <send-as-email> [-p <v>]...
|
|
settings-send-as-get <user-id> <send-as-email> [-p <v>]... [-o <out>]
|
|
settings-send-as-list <user-id> [-p <v>]... [-o <out>]
|
|
settings-send-as-patch <user-id> <send-as-email> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
settings-send-as-smime-info-delete <user-id> <send-as-email> <id> [-p <v>]...
|
|
settings-send-as-smime-info-get <user-id> <send-as-email> <id> [-p <v>]... [-o <out>]
|
|
settings-send-as-smime-info-insert <user-id> <send-as-email> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
settings-send-as-smime-info-list <user-id> <send-as-email> [-p <v>]... [-o <out>]
|
|
settings-send-as-smime-info-set-default <user-id> <send-as-email> <id> [-p <v>]...
|
|
settings-send-as-update <user-id> <send-as-email> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
settings-send-as-verify <user-id> <send-as-email> [-p <v>]...
|
|
settings-update-auto-forwarding <user-id> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
settings-update-imap <user-id> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
settings-update-language <user-id> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
settings-update-pop <user-id> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
settings-update-vacation <user-id> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
stop <user-id> [-p <v>]...
|
|
threads-delete <user-id> <id> [-p <v>]...
|
|
threads-get <user-id> <id> [-p <v>]... [-o <out>]
|
|
threads-list <user-id> [-p <v>]... [-o <out>]
|
|
threads-modify <user-id> <id> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
threads-trash <user-id> <id> [-p <v>]... [-o <out>]
|
|
threads-untrash <user-id> <id> [-p <v>]... [-o <out>]
|
|
watch <user-id> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
gmail1 --help
|
|
|
|
Configuration:
|
|
[--scope <url>]...
|
|
Specify the authentication a method should be executed in. Each scope
|
|
requires the user to grant this application permission to use it.
|
|
If unset, it defaults to the shortest scope url for a particular method.
|
|
--config-dir <folder>
|
|
A directory into which we will store our persistent data. Defaults to
|
|
a user-writable directory that we will create during the first invocation.
|
|
[default: ~/.google-service-cli]
|
|
|
|
</code></pre>
|
|
|
|
<h1 id="configuration">Configuration</h1>
|
|
<p>The program will store all persistent data in the <code>~/.google-service-cli</code> directory in <em>JSON</em> files prefixed with <code>gmail1-</code>. You can change the directory used to store configuration with the <code>--config-dir</code> flag on a per-invocation basis.</p>
|
|
<p>More information about the various kinds of persistent data are given in the following paragraphs.</p>
|
|
<h1 id="authentication">Authentication</h1>
|
|
<p>Most APIs require a user to authenticate any request. If this is the case, the <a href="https://developers.google.com/+/api/oauth#scopes">scope</a> determines the
|
|
set of permissions granted. The granularity of these is usually no more than <em>read-only</em> or <em>full-access</em>.</p>
|
|
<p>If not set, the system will automatically select the smallest feasible scope, e.g. when invoking a
|
|
method that is read-only, it will ask only for a read-only scope.
|
|
You may use the <code>--scope</code> flag to specify a scope directly.
|
|
All applicable scopes are documented in the respective method's CLI documentation.</p>
|
|
<p>The first time a scope is used, the user is asked for permission. Follow the instructions given
|
|
by the CLI to grant permissions, or to decline.</p>
|
|
<p>If a scope was authenticated by the user, the respective information will be stored as <em>JSON</em> in the configuration
|
|
directory, e.g. <code>~/.google-service-cli/gmail1-token-<scope-hash>.json</code>. No manual management of these tokens
|
|
is necessary.</p>
|
|
<p>To revoke granted authentication, please refer to the <a href="http://webapps.stackexchange.com/a/30849">official documentation</a>.</p>
|
|
<h1 id="application-secrets">Application Secrets</h1>
|
|
<p>In order to allow any application to use Google services, it will need to be registered using the
|
|
<a href="https://console.developers.google.com/">Google Developer Console</a>. APIs the application may use are then enabled for it
|
|
one by one. Most APIs can be used for free and have a daily quota.</p>
|
|
<p>To allow more comfortable usage of the CLI without forcing anyone to register an own application, the CLI
|
|
comes with a default application secret that is configured accordingly. This also means that heavy usage
|
|
all around the world may deplete the daily quota.</p>
|
|
<p>You can workaround this limitation by putting your own secrets file at this location:
|
|
<code>~/.google-service-cli/gmail1-secret.json</code>, assuming that the required <em>gmail</em> API
|
|
was enabled for it. Such a secret file can be downloaded in the <em>Google Developer Console</em> at
|
|
<em>APIs & auth -> Credentials -> Download JSON</em> and used as is.</p>
|
|
<p>Learn more about how to setup Google projects and enable APIs using the <a href="https://developers.google.com/console/help/new/">official documentation</a>.</p>
|
|
<h1 id="debugging">Debugging</h1>
|
|
<p>Even though the CLI does its best to provide usable error messages, sometimes it might be desirable to know
|
|
what exactly led to a particular issue. This is done by allowing all client-server communication to be
|
|
output to standard error <em>as-is</em>.</p>
|
|
<p>The <code>--debug</code> flag will print errors using the <code>Debug</code> representation to standard error.</p>
|
|
<p>You may consider redirecting standard error into a file for ease of use, e.g. <code>gmail1 --debug <resource> <method> [options] 2>debug.txt</code>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<footer>
|
|
|
|
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
|
|
|
<a href="users_drafts-create/" class="btn btn-neutral float-right" title="Drafts Create"/>Next <span class="icon icon-circle-arrow-right"></span></a>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<hr/>
|
|
|
|
<div role="contentinfo">
|
|
<p>
|
|
<!-- Copyright etc -->
|
|
</p>
|
|
</div>
|
|
|
|
Built with <a href="http://www.mkdocs.org">MkDocs</a>, using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
|
|
</footer>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<div class="rst-versions" role="note" style="cursor: pointer">
|
|
<span class="rst-current-version" data-toggle="rst-current-version">
|
|
|
|
<a class="icon icon-github" style="float: left; color: #fcfcfc"> GitHub</a>
|
|
|
|
<span><a href="" style="color: #fcfcfc;">« Previous</a></span>
|
|
<span style="margin-left: 15px"><a href="users_drafts-create/" style="color: #fcfcfc">Next »</a></span>
|
|
</span>
|
|
</div>
|
|
</body>
|
|
</html> |