Skip to content

Commit

Permalink
Merge pull request #35 from pieterhelsen/api-key-deprecation
Browse files Browse the repository at this point in the history
Api key deprecation
  • Loading branch information
Danamir committed Apr 22, 2024
2 parents b14454f + 4170540 commit ffd1237
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.ini-dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[api]
url = https://api.gandi.net/v5/livedns/
; Generate your Gandi API key via : https://account.gandi.net/en/users/<user>/security
; Generate your Gandi Personal Access Token via Gandi Dashboard > Organizations > Manage > Create a token
key =

[dns]
Expand Down
2 changes: 1 addition & 1 deletion livedns_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _query_api(self, method, query, json_data=None):

headers = {
"x-api-key": self.key,
"Authorization": "Apikey %s" % self.key,
"Authorization": "Bearer %s" % self.key,
"Accept": "application/json",
}

Expand Down

0 comments on commit ffd1237

Please sign in to comment.