Skip to content

Commit

Permalink
Update the HTTP request files [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Sep 23, 2023
1 parent a8980aa commit 60baae6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
5 changes: 1 addition & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
}
}
4 changes: 2 additions & 2 deletions share/comment_check.http
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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!
Expand Down
2 changes: 1 addition & 1 deletion share/key_sites_activity.http
Original file line number Diff line number Diff line change
@@ -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}}
2 changes: 1 addition & 1 deletion share/key_verification.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.js
&key={{$processEnv %apiKey}}
&key={{$processEnv AKISMET_API_KEY}}
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={{$processEnv %apiKey}}
api_key={{$processEnv AKISMET_API_KEY}}
&blog=https://github.com/cedx/akismet.js
&comment_author=Akismet
&comment_author_url=https://belin.io
Expand All @@ -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!
Expand Down
2 changes: 1 addition & 1 deletion share/usage_limit.http
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit 60baae6

Please sign in to comment.