23 lines
465 B
YAML
23 lines
465 B
YAML
id: api-bitly
|
|
|
|
info:
|
|
name: Bitly API Test
|
|
author: zzeitlin,geeknik
|
|
severity: info
|
|
reference:
|
|
- https://dev.bitly.com/api-reference
|
|
tags: token-spray,bitly
|
|
|
|
self-contained: true
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "https://api-ssl.bitly.com/v3/shorten?access_token={{token}}&longUrl=https://www.google.com"
|
|
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- '"status_code":200,"status_txt":"OK"'
|
|
condition: and
|