From 4f3caf09b333fcd6b7a6ffd2a819c633a4581c6c Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Thu, 4 Feb 2021 16:37:20 +0100 Subject: [PATCH] Add a link to the account page. Which is not obvious, I searched in admin.gandi.net for a bunch of minutes before finding account.gandi.net. Also v4/v5 being XMLRPC/REST split is not obvious. --- gandi/cli/commands/root.py | 7 +++++++ gandi/cli/modules/dns.py | 1 + 2 files changed, 8 insertions(+) diff --git a/gandi/cli/commands/root.py b/gandi/cli/commands/root.py index 0a53f3a2..e1cd6849 100644 --- a/gandi/cli/commands/root.py +++ b/gandi/cli/commands/root.py @@ -16,6 +16,13 @@ def setup(gandi): """ intro = """Welcome to GandiCLI, let's configure a few things before we \ start. + +If you don't already have them, you can generate API keys from +your Gandi account: + +=> https://account.gandi.net/ for the v5 (REST API) +=> https://v4.gandi.net for the v4 (XMLRPC API) + """ outro = """ diff --git a/gandi/cli/modules/dns.py b/gandi/cli/modules/dns.py index 1d997fff..b98f90cc 100644 --- a/gandi/cli/modules/dns.py +++ b/gandi/cli/modules/dns.py @@ -20,6 +20,7 @@ class Dns(GandiModule): """ + # API documentation: https://doc.livedns.gandi.net/ api_url = 'https://dns.api.gandi.net/api/v5' @classmethod