From 60baae62781bdcb9a72e1ae889fde385f880b342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Belin?= Date: Sat, 23 Sep 2023 21:22:20 +0200 Subject: [PATCH] Update the HTTP request files [skip ci] --- .vscode/settings.json | 5 +---- share/comment_check.http | 4 ++-- share/key_sites_activity.http | 2 +- share/key_verification.http | 2 +- share/submit_ham_spam.http | 4 ++-- share/usage_limit.http | 2 +- 6 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 18dc6978..4ca9f7d2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,9 +7,6 @@ "[markdown]": {"files.trimTrailingWhitespace": false}, "[yaml]": {"editor.insertSpaces": true}, "rest-client.environmentVariables": { - "dev": { - "apiKey": "AKISMET_API_KEY", - "apiUrl": "https://rest.akismet.com" - } + "dev": {"apiUrl": "https://rest.akismet.com"} } } diff --git a/share/comment_check.http b/share/comment_check.http index 3929e442..ffab93f2 100644 --- a/share/comment_check.http +++ b/share/comment_check.http @@ -3,7 +3,7 @@ POST {{apiUrl}}/1.1/comment-check Content-Type: application/x-www-form-urlencoded -api_key={{$processEnv %apiKey}} +api_key={{$processEnv AKISMET_API_KEY}} &blog=https://github.com/cedx/akismet.js &comment_author=Akismet &comment_author_url=https://belin.io @@ -22,7 +22,7 @@ api_key={{$processEnv %apiKey}} POST {{apiUrl}}/1.1/comment-check Content-Type: application/x-www-form-urlencoded -api_key={{$processEnv %apiKey}} +api_key={{$processEnv AKISMET_API_KEY}} &blog=https://github.com/cedx/akismet.js &comment_author=viagra-test-123 &comment_content=Spam! diff --git a/share/key_sites_activity.http b/share/key_sites_activity.http index 34e85d2c..cc86cbbb 100644 --- a/share/key_sites_activity.http +++ b/share/key_sites_activity.http @@ -1,2 +1,2 @@ // TODO -GET {{apiUrl}}/1.2/key-sites?api_key={{$processEnv %apiKey}} +GET {{apiUrl}}/1.2/key-sites?api_key={{$processEnv AKISMET_API_KEY}} diff --git a/share/key_verification.http b/share/key_verification.http index 371d3842..bca7c1a3 100644 --- a/share/key_verification.http +++ b/share/key_verification.http @@ -3,4 +3,4 @@ POST {{apiUrl}}/1.1/verify-key Content-Type: application/x-www-form-urlencoded blog=https://github.com/cedx/akismet.js -&key={{$processEnv %apiKey}} +&key={{$processEnv AKISMET_API_KEY}} diff --git a/share/submit_ham_spam.http b/share/submit_ham_spam.http index e71d390c..bf732ea2 100644 --- a/share/submit_ham_spam.http +++ b/share/submit_ham_spam.http @@ -2,7 +2,7 @@ POST {{apiUrl}}/1.1/submit-ham Content-Type: application/x-www-form-urlencoded -api_key={{$processEnv %apiKey}} +api_key={{$processEnv AKISMET_API_KEY}} &blog=https://github.com/cedx/akismet.js &comment_author=Akismet &comment_author_url=https://belin.io @@ -20,7 +20,7 @@ api_key={{$processEnv %apiKey}} POST {{apiUrl}}/1.1/submit-spam Content-Type: application/x-www-form-urlencoded -api_key={{$processEnv %apiKey}} +api_key={{$processEnv AKISMET_API_KEY}} &blog=https://github.com/cedx/akismet.js &comment_author=viagra-test-123 &comment_content=Spam! diff --git a/share/usage_limit.http b/share/usage_limit.http index d9217dab..f269ddf7 100644 --- a/share/usage_limit.http +++ b/share/usage_limit.http @@ -1,2 +1,2 @@ // TODO -GET {{apiUrl}}/1.2/usage-limit?api_key={{$processEnv %apiKey}} +GET {{apiUrl}}/1.2/usage-limit?api_key={{$processEnv AKISMET_API_KEY}}