Files
google-apis-rs/google_analyticsadmin1_alpha_cli/index.html
2022-03-08 15:36:16 +08:00

694 lines
33 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>Google Analytics Admin v3.0.0+20220307</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"> Google Analytics Admin v3.0.0+20220307</a>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul class="current">
<span>Account Summaries</span>
<li class="toctree-l1 ">
<a class="" href="account-summaries_list/">List</a>
</li>
<span>Accounts</span>
<li class="toctree-l1 ">
<a class="" href="accounts_delete/">Delete</a>
</li>
<li class="toctree-l1 ">
<a class="" href="accounts_get/">Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="accounts_get-data-sharing-settings/">Get Data Sharing Settings</a>
</li>
<li class="toctree-l1 ">
<a class="" href="accounts_list/">List</a>
</li>
<li class="toctree-l1 ">
<a class="" href="accounts_patch/">Patch</a>
</li>
<li class="toctree-l1 ">
<a class="" href="accounts_provision-account-ticket/">Provision Account Ticket</a>
</li>
<li class="toctree-l1 ">
<a class="" href="accounts_search-change-history-events/">Search Change History Events</a>
</li>
<li class="toctree-l1 ">
<a class="" href="accounts_user-links-audit/">User Links Audit</a>
</li>
<li class="toctree-l1 ">
<a class="" href="accounts_user-links-batch-create/">User Links Batch Create</a>
</li>
<li class="toctree-l1 ">
<a class="" href="accounts_user-links-batch-delete/">User Links Batch Delete</a>
</li>
<li class="toctree-l1 ">
<a class="" href="accounts_user-links-batch-get/">User Links Batch Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="accounts_user-links-batch-update/">User Links Batch Update</a>
</li>
<li class="toctree-l1 ">
<a class="" href="accounts_user-links-create/">User Links Create</a>
</li>
<li class="toctree-l1 ">
<a class="" href="accounts_user-links-delete/">User Links Delete</a>
</li>
<li class="toctree-l1 ">
<a class="" href="accounts_user-links-get/">User Links Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="accounts_user-links-list/">User Links List</a>
</li>
<li class="toctree-l1 ">
<a class="" href="accounts_user-links-patch/">User Links Patch</a>
</li>
<span>Properties</span>
<li class="toctree-l1 ">
<a class="" href="properties_acknowledge-user-data-collection/">Acknowledge User Data Collection</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_conversion-events-create/">Conversion Events Create</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_conversion-events-delete/">Conversion Events Delete</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_conversion-events-get/">Conversion Events Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_conversion-events-list/">Conversion Events List</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_create/">Create</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_custom-dimensions-archive/">Custom Dimensions Archive</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_custom-dimensions-create/">Custom Dimensions Create</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_custom-dimensions-get/">Custom Dimensions Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_custom-dimensions-list/">Custom Dimensions List</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_custom-dimensions-patch/">Custom Dimensions Patch</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_custom-metrics-archive/">Custom Metrics Archive</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_custom-metrics-create/">Custom Metrics Create</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_custom-metrics-get/">Custom Metrics Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_custom-metrics-list/">Custom Metrics List</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_custom-metrics-patch/">Custom Metrics Patch</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_data-streams-create/">Data Streams Create</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_data-streams-delete/">Data Streams Delete</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_data-streams-get/">Data Streams Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_data-streams-get-global-site-tag/">Data Streams Get Global Site Tag</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_data-streams-list/">Data Streams List</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_data-streams-measurement-protocol-secrets-create/">Data Streams Measurement Protocol Secrets Create</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_data-streams-measurement-protocol-secrets-delete/">Data Streams Measurement Protocol Secrets Delete</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_data-streams-measurement-protocol-secrets-get/">Data Streams Measurement Protocol Secrets Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_data-streams-measurement-protocol-secrets-list/">Data Streams Measurement Protocol Secrets List</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_data-streams-measurement-protocol-secrets-patch/">Data Streams Measurement Protocol Secrets Patch</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_data-streams-patch/">Data Streams Patch</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_delete/">Delete</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_display-video360-advertiser-link-proposals-approve/">Display Video360 Advertiser Link Proposals Approve</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_display-video360-advertiser-link-proposals-cancel/">Display Video360 Advertiser Link Proposals Cancel</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_display-video360-advertiser-link-proposals-create/">Display Video360 Advertiser Link Proposals Create</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_display-video360-advertiser-link-proposals-delete/">Display Video360 Advertiser Link Proposals Delete</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_display-video360-advertiser-link-proposals-get/">Display Video360 Advertiser Link Proposals Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_display-video360-advertiser-link-proposals-list/">Display Video360 Advertiser Link Proposals List</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_display-video360-advertiser-links-create/">Display Video360 Advertiser Links Create</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_display-video360-advertiser-links-delete/">Display Video360 Advertiser Links Delete</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_display-video360-advertiser-links-get/">Display Video360 Advertiser Links Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_display-video360-advertiser-links-list/">Display Video360 Advertiser Links List</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_display-video360-advertiser-links-patch/">Display Video360 Advertiser Links Patch</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_firebase-links-create/">Firebase Links Create</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_firebase-links-delete/">Firebase Links Delete</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_firebase-links-list/">Firebase Links List</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_get/">Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_get-data-retention-settings/">Get Data Retention Settings</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_get-google-signals-settings/">Get Google Signals Settings</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_google-ads-links-create/">Google Ads Links Create</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_google-ads-links-delete/">Google Ads Links Delete</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_google-ads-links-list/">Google Ads Links List</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_google-ads-links-patch/">Google Ads Links Patch</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_list/">List</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_patch/">Patch</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_update-data-retention-settings/">Update Data Retention Settings</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_update-google-signals-settings/">Update Google Signals Settings</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_user-links-audit/">User Links Audit</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_user-links-batch-create/">User Links Batch Create</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_user-links-batch-delete/">User Links Batch Delete</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_user-links-batch-get/">User Links Batch Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_user-links-batch-update/">User Links Batch Update</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_user-links-create/">User Links Create</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_user-links-delete/">User Links Delete</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_user-links-get/">User Links Get</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_user-links-list/">User Links List</a>
</li>
<li class="toctree-l1 ">
<a class="" href="properties_user-links-patch/">User Links Patch</a>
</li>
</ul>
</div>
&nbsp;
</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> &raquo;</li>
<li>Home</li>
<li class="wy-breadcrumbs-aside">
<a href="https://github.com/Byron/google-apis-rs/tree/main/gen/analyticsadmin1_alpha-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>analyticsadmin1-alpha</code> command-line interface <em>(CLI)</em> allows to use most features of the <em>Google Google Analytics Admin</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>Google Analytics Admin</em> API can be found at the
<a href="http://code.google.com/apis/analytics/docs/mgmt/home.html">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-analyticsadmin1_alpha-cli
</code></pre>
<p>Find the source code <a href="https://github.com/Byron/google-apis-rs/tree/main/gen/analyticsadmin1_alpha-cli">on github</a>.</p>
<h1 id="usage">Usage</h1>
<p>This documentation was generated from the <em>Google Analytics Admin</em> API at revision <em>20220307</em>. The CLI is at version <em>3.0.0</em>.</p>
<pre><code class="bash">analyticsadmin1-alpha [options]
account-summaries
list [-p &lt;v&gt;]... [-o &lt;out&gt;]
accounts
delete &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
get &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
get-data-sharing-settings &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
list [-p &lt;v&gt;]... [-o &lt;out&gt;]
patch &lt;name&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
provision-account-ticket (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
search-change-history-events &lt;account&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-audit &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-batch-create &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-batch-delete &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-batch-get &lt;parent&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-batch-update &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-create &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-delete &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-get &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-list &lt;parent&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-patch &lt;name&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
properties
acknowledge-user-data-collection &lt;property&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
conversion-events-create &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
conversion-events-delete &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
conversion-events-get &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
conversion-events-list &lt;parent&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
create (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
custom-dimensions-archive &lt;name&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
custom-dimensions-create &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
custom-dimensions-get &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
custom-dimensions-list &lt;parent&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
custom-dimensions-patch &lt;name&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
custom-metrics-archive &lt;name&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
custom-metrics-create &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
custom-metrics-get &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
custom-metrics-list &lt;parent&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
custom-metrics-patch &lt;name&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
data-streams-create &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
data-streams-delete &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
data-streams-get &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
data-streams-get-global-site-tag &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
data-streams-list &lt;parent&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
data-streams-measurement-protocol-secrets-create &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
data-streams-measurement-protocol-secrets-delete &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
data-streams-measurement-protocol-secrets-get &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
data-streams-measurement-protocol-secrets-list &lt;parent&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
data-streams-measurement-protocol-secrets-patch &lt;name&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
data-streams-patch &lt;name&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
delete &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
display-video360-advertiser-link-proposals-approve &lt;name&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
display-video360-advertiser-link-proposals-cancel &lt;name&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
display-video360-advertiser-link-proposals-create &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
display-video360-advertiser-link-proposals-delete &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
display-video360-advertiser-link-proposals-get &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
display-video360-advertiser-link-proposals-list &lt;parent&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
display-video360-advertiser-links-create &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
display-video360-advertiser-links-delete &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
display-video360-advertiser-links-get &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
display-video360-advertiser-links-list &lt;parent&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
display-video360-advertiser-links-patch &lt;name&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
firebase-links-create &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
firebase-links-delete &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
firebase-links-list &lt;parent&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
get &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
get-data-retention-settings &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
get-google-signals-settings &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
google-ads-links-create &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
google-ads-links-delete &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
google-ads-links-list &lt;parent&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
google-ads-links-patch &lt;name&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
list [-p &lt;v&gt;]... [-o &lt;out&gt;]
patch &lt;name&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
update-data-retention-settings &lt;name&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
update-google-signals-settings &lt;name&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-audit &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-batch-create &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-batch-delete &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-batch-get &lt;parent&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-batch-update &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-create &lt;parent&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-delete &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-get &lt;name&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-list &lt;parent&gt; [-p &lt;v&gt;]... [-o &lt;out&gt;]
user-links-patch &lt;name&gt; (-r &lt;kv&gt;)... [-p &lt;v&gt;]... [-o &lt;out&gt;]
analyticsadmin1-alpha --help
Configuration:
[--scope &lt;url&gt;]...
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 &lt;folder&gt;
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>analyticsadmin1-alpha-</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/analyticsadmin1-alpha-token-&lt;scope-hash&gt;.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/analyticsadmin1-alpha-secret.json</code>, assuming that the required <em>analyticsadmin</em> API
was enabled for it. Such a secret file can be downloaded in the <em>Google Developer Console</em> at
<em>APIs &amp; auth -&gt; Credentials -&gt; 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>analyticsadmin1-alpha --debug &lt;resource&gt; &lt;method&gt; [options] 2&gt;debug.txt</code>.</p>
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="account-summaries_list/" class="btn btn-neutral float-right" title="List"/>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;">&laquo; Previous</a></span>
<span style="margin-left: 15px"><a href="account-summaries_list/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
</body>
</html>