README.md in yandex_cleanweb-0.0.6 vs README.md in yandex_cleanweb-0.0.7
- old
+ new
@@ -34,9 +34,17 @@
YandexCleanweb.spam?(body_html: "some spam <a href='http://spam.com'>spam link</a>")
=> { id: "request id", links: [ ['http://spam.com', true] ] }
```
+Tell Cleanweb API that message is spam:
+
+```ruby
+YandexCleanweb.api_key = "your_key"
+YandexCleanweb.spam!("some spam here")
+YandexCleanweb.spam!(body_html: "some spam <a href='http://spam.com'>spam link</a>")
+```
+
More complex example:
```ruby
user_input = "download free porn <a>...</a>"