Skip to content

Commit

Permalink
Update the REST client settings
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Jul 11, 2024
1 parent bd3a391 commit 81dce90
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"[yaml]": {"editor.insertSpaces": true},
"rest-client.environmentVariables": {
"development": {
"akismetApiKey": "",
"apiKey": "AKISMET_API_KEY",
"apiUrl": "https://rest.akismet.com"
}
}
Expand Down
6 changes: 0 additions & 6 deletions etc/http-client.env.json

This file was deleted.

4 changes: 2 additions & 2 deletions share/check_comment.http
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
POST {{apiUrl}}/1.1/comment-check
Content-Type: application/x-www-form-urlencoded

api_key={{akismetApiKey}}
api_key={{$processEnv %apiKey}}
&blog=https://github.com/cedx/akismet.php
&comment_author=Akismet
&comment_author_url=https://belin.io
Expand All @@ -18,7 +18,7 @@ api_key={{akismetApiKey}}
POST {{apiUrl}}/1.1/comment-check
Content-Type: application/x-www-form-urlencoded

api_key={{akismetApiKey}}
api_key={{$processEnv %apiKey}}
&blog=https://github.com/cedx/akismet.php
&comment_author=viagra-test-123
&comment_content=Spam!
Expand Down
4 changes: 2 additions & 2 deletions share/submit_ham_spam.http
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
POST {{apiUrl}}/1.1/submit-ham
Content-Type: application/x-www-form-urlencoded

api_key={{akismetApiKey}}
api_key={{$processEnv %apiKey}}
&blog=https://github.com/cedx/akismet.php
&comment_author=Akismet
&comment_author_url=https://belin.io
Expand All @@ -18,7 +18,7 @@ api_key={{akismetApiKey}}
POST {{apiUrl}}/1.1/submit-spam
Content-Type: application/x-www-form-urlencoded

api_key={{akismetApiKey}}
api_key={{$processEnv %apiKey}}
&blog=https://github.com/cedx/akismet.php
&comment_author=viagra-test-123
&comment_content=Spam!
Expand Down
2 changes: 1 addition & 1 deletion share/verify_key.http
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ POST {{apiUrl}}/1.1/verify-key
Content-Type: application/x-www-form-urlencoded

blog=https://github.com/cedx/akismet.php
&key={{akismetApiKey}}
&key={{$processEnv %apiKey}}

0 comments on commit 81dce90

Please sign in to comment.