52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
id: api-wordcloud
|
|
|
|
info:
|
|
name: Word Cloud API Test
|
|
author: daffainfo
|
|
severity: info
|
|
description: Easily create word clouds
|
|
reference:
|
|
- https://wordcloudapi.com/getting-started
|
|
- https://github.com/daffainfo/all-about-apikey/tree/main/word-cloud
|
|
metadata:
|
|
max-request: 1
|
|
tags: token-spray,wordcloud
|
|
|
|
self-contained: true
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
POST https://textvis-word-cloud-v1.p.rapidapi.com/v1/textToCloud HTTP/1.1
|
|
Host: textvis-word-cloud-v1.p.rapidapi.com
|
|
content-type: application/json
|
|
x-rapidapi-host: textvis-word-cloud-v1.p.rapidapi.com
|
|
x-rapidapi-key: {{token}}
|
|
Content-Length: 349
|
|
|
|
{
|
|
"text": "This is a test. I repeat, this is a test. We are only testing the functionality of this api, nothing else. End of test.",
|
|
"scale": 0.5,
|
|
"width": 400,
|
|
"height": 400,
|
|
"colors": [
|
|
"#375E97",
|
|
"#FB6542",
|
|
"#FFBB00",
|
|
"#3F681C"
|
|
],
|
|
"font": "Tahoma",
|
|
"use_stopwords": true,
|
|
"language": "en",
|
|
"uppercase": false
|
|
}
|
|
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
negative: true
|
|
words:
|
|
- '{"message":"You are not subscribed to this API."}'
|
|
|
|
# digest: 4a0a0047304502200bb686f7740c3aa0631d8eff8a8c27854fef6f4e1c638d8a3075d1fd01dd81cb022100abe7621b7beb6ed80118f7f668d8151b8e45ec1fd802602bf80c4786332259f6:922c64590222798bb761d5b6d8e72950
|