Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Jan 29, 2024
1 parent 6f9ddb0 commit 88c63d7
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 55 deletions.
29 changes: 29 additions & 0 deletions share/check_comment.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
### Checks the specified ham against the service database.
POST {{apiUrl}}/1.1/comment-check
Content-Type: application/x-www-form-urlencoded

api_key = {{akismetApiKey}} &
blog = https://github.com/cedx/akismet.js &
comment_author = Akismet &
comment_author_url = https://belin.io &
comment_content = I'm testing out the Service API. &
comment_type = comment &
is_test = true &
referrer = https://www.npmjs.com/package/@cedx/akismet &
user_agent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 &
user_ip = 192.168.0.1 &
user_role = administrator

### Checks the specified spam against the service database.
POST {{apiUrl}}/1.1/comment-check
Content-Type: application/x-www-form-urlencoded

api_key = {{akismetApiKey}} &
blog = https://github.com/cedx/akismet.js &
comment_author = viagra-test-123 &
comment_content = Spam! &
comment_type = trackback &
comment_author_email = akismet-guaranteed-spam%40example.com &
is_test = true &
user_ip = 127.0.0.1 &
user_agent = Spam Bot/6.6.6
29 changes: 0 additions & 29 deletions share/comment_check.http

This file was deleted.

2 changes: 0 additions & 2 deletions share/key_sites_activity.http

This file was deleted.

40 changes: 20 additions & 20 deletions share/submit_ham_spam.http
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@
POST {{apiUrl}}/1.1/submit-ham
Content-Type: application/x-www-form-urlencoded

api_key={{akismetApiKey}}
&blog=https://github.com/cedx/akismet.js
&comment_author=Akismet
&comment_author_url=https://belin.io
&comment_content=I'm testing out the Service API.
&comment_type=comment
&is_test=true
&referrer=https://www.npmjs.com/package/@cedx/akismet
&user_agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
&user_ip=192.168.0.1
&user_role=administrator
api_key = {{akismetApiKey}} &
blog = https://github.com/cedx/akismet.js &
comment_author = Akismet &
comment_author_url = https://belin.io &
comment_content = I'm testing out the Service API. &
comment_type = comment &
is_test = true &
referrer = https://www.npmjs.com/package/@cedx/akismet &
user_agent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 &
user_ip = 192.168.0.1 &
user_role = administrator

### Submits the specified comment that was not marked as spam but should have been.
POST {{apiUrl}}/1.1/submit-spam
Content-Type: application/x-www-form-urlencoded

api_key={{akismetApiKey}}
&blog=https://github.com/cedx/akismet.js
&comment_author=viagra-test-123
&comment_content=Spam!
&comment_type=trackback
&comment_author_email=akismet-guaranteed-spam%40example.com
&is_test=true
&user_ip=127.0.0.1
&user_agent=Spam Bot/6.6.6
api_key = {{akismetApiKey}} &
blog = https://github.com/cedx/akismet.js &
comment_author = viagra-test-123 &
comment_content = Spam! &
comment_type = trackback &
comment_author_email = akismet-guaranteed-spam%40example.com &
is_test = true &
user_ip = 127.0.0.1 &
user_agent = Spam Bot/6.6.6
2 changes: 0 additions & 2 deletions share/usage_limit.http

This file was deleted.

4 changes: 2 additions & 2 deletions share/key_verification.http → share/verify_key.http
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
POST {{apiUrl}}/1.1/verify-key
Content-Type: application/x-www-form-urlencoded

blog=https://github.com/cedx/akismet.js
&key={{akismetApiKey}}
blog = https://github.com/cedx/akismet.js &
key = {{akismetApiKey}}

0 comments on commit 88c63d7

Please sign in to comment.