Skip to content

Commit ffd1237

Browse files
authored
Merge pull request #35 from pieterhelsen/api-key-deprecation
Api key deprecation
2 parents b14454f + 4170540 commit ffd1237

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config.ini-dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[api]
22
url = https://api.gandi.net/v5/livedns/
3-
; Generate your Gandi API key via : https://account.gandi.net/en/users/<user>/security
3+
; Generate your Gandi Personal Access Token via Gandi Dashboard > Organizations > Manage > Create a token
44
key =
55

66
[dns]

livedns_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _query_api(self, method, query, json_data=None):
3838

3939
headers = {
4040
"x-api-key": self.key,
41-
"Authorization": "Apikey %s" % self.key,
41+
"Authorization": "Bearer %s" % self.key,
4242
"Accept": "application/json",
4343
}
4444

0 commit comments

Comments
 (0)