more changes

patch-1
Prince Chaddha 2021-11-10 15:05:20 +05:30
parent 0f99f285d3
commit 462c4f7b12
27 changed files with 136 additions and 84 deletions

View File

@ -17,10 +17,9 @@ requests:
Authorization: Bearer {{token}}
matchers:
- type: status
condition: or
status:
- 200
- 201
- 202
- 206
- type: word
part: body
words:
- '"created_at":'
- '"git_url":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-hubspot
info:
name: HubSpot API Test
author: zzeitlin
reference: https://legacydocs.hubspot.com/docs/methods/owners/get_owners
severity: info
reference: https://legacydocs.hubspot.com/docs/methods/owners/get_owners
tags: token-spray,hubspot
self-contained: true
@ -12,11 +12,20 @@ requests:
- method: GET
path:
- "https://api.hubapi.com/owners/v2/owners?hapikey={{token}}"
- "https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey={{token}}"
- "https://api.hubapi.com/contacts/v1/lists/static?count=3&hapikey={{token}}"
matchers-condition: or
matchers:
- type: word
part: body
words:
- 'error'
negative: true
- '"portalId":'
- '"ownerId":'
condition: and
- type: word
part: body
words:
- '"metaData":'
- '"portalId":'
condition: and

View File

@ -11,9 +11,13 @@ self-contained: true
requests:
- method: GET
path:
- "https://graph.facebook.com/v8.0/me/accounts?access_token={{token}}"
- "https://graph.facebook.com/v12.0/me/accounts?access_token={{token}}"
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- '"data":'
- '"access_token":'
- '"name":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-ipstack
info:
name: IPStack API Test
author: zzeitlin
reference: https://ipstack.com/documentation
severity: info
reference: https://ipstack.com/documentation
tags: token-spray,ipstack
self-contained: true
@ -16,6 +16,8 @@ requests:
matchers:
- type: word
part: body
negative: true
words:
- 'invalid_access_key'
- '"ip":'
- '"hostname":'
- '"type":'
condition: and

View File

@ -3,22 +3,22 @@ id: api-iterable
info:
name: Iterable API Test
author: zzeitlin
reference: https://api.iterable.com/api/docs
severity: info
reference: https://api.iterable.com/api/docs
tags: token-spray,iterable
self-contained: true
requests:
- method: GET
path:
- "https://api.iterable.com/api/export/data.json?dataTypeName=emailSend&range=Today&onlyFields=List.empty"
- "https://api.iterable.com/api/catalogs"
headers:
Api_Key: "{{token}}"
matchers:
- type: word
part: body
negative: true
words:
- 'BadApiKey'
- 'RateLimitExceeded' # Matchers needs to be replaced with valid +ve match instead of -ve
- '"name":'
- '"catalogNames":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-jumpcloud
info:
name: JumpCloud API Test
author: zzeitlin
reference: https://docs.jumpcloud.com/1.0/authentication-and-authorization/api-key
severity: info
reference: https://docs.jumpcloud.com/1.0/authentication-and-authorization/api-key
tags: token-spray,jumpcloud
self-contained: true
@ -18,6 +18,7 @@ requests:
matchers:
- type: word
part: body
negative: true
words:
- 'Unauthorized'
- '"_id":'
- '"agentServer":'
condition: and

View File

@ -21,6 +21,8 @@ requests:
- type: word
part: body
negative: true
words:
- "serviceErrorCode"
- '"id":'
- '"firstName":'
- '"localized":'
condition: and

View File

@ -3,19 +3,23 @@ id: api-lokalise
info:
name: Lokalise API Test
author: zzeitlin
reference: https://app.lokalise.com/api2docs/curl/#resource-projects
severity: info
reference: https://app.lokalise.com/api2docs/curl/#resource-projects
tags: token-spray,lokalise
self-contained: true
requests:
- method: GET
path:
- "https://api.lokalise.com/api2/projects/"
- "https://api.lokalise.com/api2/teams"
headers:
X-Api-Token: "{{token}}"
x-api-Token: "{{token}}"
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- '"teams":'
- '"team_id":'
- '"name":'
condition: and

View File

@ -3,15 +3,15 @@ id: api-loqate
info:
name: Loqate API Test
author: zzeitlin
reference: https://www.loqate.com/resources/support/apis/Capture/Interactive/Find/1.1/
severity: info
reference: https://www.loqate.com/resources/support/apis/Capture/Interactive/Find/1.1/
tags: token-spray,loqate
self-contained: true
requests:
- method: GET
path:
- "api.addressy.com/Capture/Interactive/Find/v1.00/json3.ws?Key={{token}}&Countries=US,CA&Language=en&Limit=5&Text=BHAR"
- "https://api.addressy.com/Capture/Interactive/Find/v1.00/json3.ws?Key={{token}}&Countries=US,CA&Language=en&Limit=5&Text=BHAR"
matchers:
- type: word

View File

@ -3,8 +3,8 @@ id: api-mailchimp
info:
name: Mailchimp API Test
author: zzeitlin
reference: https://mailchimp.com/developer/transactional/docs/smtp-integration/#credentials-and-configuration
severity: info
reference: https://mailchimp.com/developer/transactional/docs/smtp-integration/#credentials-and-configuration
tags: token-spray,mailchimp
self-contained: true

View File

@ -3,8 +3,8 @@ id: api-mailgun
info:
name: Mailgun API Test
author: zzeitlin
reference: https://documentation.mailgun.com/en/latest/api-intro.html
severity: info
reference: https://documentation.mailgun.com/en/latest/api-intro.html
tags: token-spray,mailgun
self-contained: true
@ -16,6 +16,10 @@ requests:
Authorization: Basic {{base64('api:' + token)}}
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- '"total_count":'
- '"items":'
- '"created_at":'
condition: and

View File

@ -14,7 +14,10 @@ requests:
- "https://api.mapbox.com/geocoding/v5/mapbox.places/Los%20Angeles.json?access_token={{token}}"
matchers:
- type: status
status:
- 401
negative: true
- type: word
part: body
words:
- 'type'
- 'query'
- 'features'
condition: and

View File

@ -3,8 +3,8 @@ id: api-nerdgraph
info:
name: New Relic NerdGraph API Test
author: zzeitlin
reference: https://docs.newrelic.com/docs/apis/nerdgraph/get-started/introduction-new-relic-nerdgraph/
severity: info
reference: https://docs.newrelic.com/docs/apis/nerdgraph/get-started/introduction-new-relic-nerdgraph/
tags: token-spray,newrelic,nerdgraph
self-contained: true

View File

@ -3,8 +3,8 @@ id: api-netlify
info:
name: Netlify API Test
author: dwisiswant0
reference: https://docs.netlify.com/api/get-started/
severity: info
reference: https://docs.netlify.com/api/get-started/
tags: token-spray,netlify
self-contained: true
@ -16,6 +16,10 @@ requests:
Authorization: Bearer {{token}}
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- '"id":'
- '"premium":'
- '"claimed":'
condition: and

View File

@ -3,9 +3,9 @@ id: api-npm
info:
name: NPM API Test
author: zzeitlin
reference: https://docs.npmjs.com/creating-and-viewing-access-tokens
severity: info
tags: token-spray,node,npm,package,manager
reference: https://docs.npmjs.com/creating-and-viewing-access-tokens
tags: token-spray,node,npm
self-contained: true
requests:

View File

@ -3,21 +3,25 @@ id: api-onelogin
info:
name: OneLogin API Test
author: dwisiswant0
reference: https://developers.onelogin.com/api-docs/2/getting-started/dev-overview
severity: info
reference: https://developers.onelogin.com/api-docs/2/getting-started/dev-overview
tags: token-spray,onelogin
self-contained: true
requests:
- method: GET
path:
- "https://api.us.onelogin.com/api/2/users?fields=id"
- "https://api.eu.onelogin.com/api/2/users?fields=id"
- "https://api.us.onelogin.com/api/2/apps"
- "https://api.eu.onelogin.com/api/2/apps"
headers:
Authorization: Bearer {{token}}
stop-at-first-match: true
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- '"id":'
- '"connector_id":'
- '"auth_method":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-openweather
info:
name: OpenWeather API Test
author: zzeitlin
reference: https://openweathermap.org/current
severity: info
reference: https://openweathermap.org/current
tags: token-spray,weather,openweather
self-contained: true
@ -14,6 +14,10 @@ requests:
- "https://api.openweathermap.org/data/2.5/weather?q=Chicago&appid={{token}}"
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- '"coord":'
- '"weather":'
- '"base":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-optimizely
info:
name: Optimizely API Test
author: dwisiswant0
reference: https://library.optimizely.com/docs/api/app/v2/index.html
severity: info
reference: https://library.optimizely.com/docs/api/app/v2/index.html
tags: token-spray,optimizely
self-contained: true
@ -24,4 +24,6 @@ requests:
- type: word
part: body
words:
- "account_id"
- '"account_id":'
- '"confidence_threshold":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-pagerduty
info:
name: Pagerduty API Test
author: zzeitlin
reference: https://developer.pagerduty.com/api-reference
severity: info
reference: https://developer.pagerduty.com/api-reference
tags: token-spray,pagerduty
self-contained: true
@ -17,7 +17,9 @@ requests:
Authorization: Token token={{token}}
matchers:
- type: status
status:
- 401
negative: true
- type: word
part: body
words:
- '"schedules":'
- '"id":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-pendo
info:
name: Pendo API Test
author: zzeitlin
reference: https://help.pendo.io/resources/support-library/api/index.html
severity: info
reference: https://help.pendo.io/resources/support-library/api/index.html
tags: token-spray,pendo
self-contained: true
@ -12,13 +12,14 @@ requests:
- method: GET
path:
- "https://app.pendo.io/api/v1/feature"
- "https://app.pendo.io/api/v1/metadata/schema/account"
headers:
Content-Type: application/json
X-Pendo-Integration-Key: "{{token}}"
matchers:
- type: status
status:
- 403
negative: true
- type: word
part: body
words:
- '"createdByUser":'
- '"id":'
condition: and

View File

@ -21,3 +21,4 @@ requests:
negative: true
words:
- 'invalid_authentication'
- 'unauthenticated'

View File

@ -3,20 +3,24 @@ id: api-postmark
info:
name: PostMark API Test
author: zzeitlin
reference: https://postmarkapp.com/developer/api/overview
severity: info
reference: https://postmarkapp.com/developer/api/overview
tags: token-spray,postmark
self-contained: true
requests:
- method: GET
path:
- "https://api.postmarkapp.com/stats/outbound"
- "https://api.postmarkapp.com/server"
headers:
Accept: application/json
X-Postmark-Server-Token: "{{token}}"
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- '"ID":'
- '"Name":'
- '"ApiTokens":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-sendgrid
info:
name: Sendgrid API Test
author: zzeitlin
reference: https://docs.sendgrid.com/for-developers/sending-email/getting-started-smtp
severity: info
reference: https://docs.sendgrid.com/for-developers/sending-email/getting-started-smtp
tags: token-spray,sendgrid
self-contained: true

View File

@ -19,5 +19,7 @@ requests:
- type: word
part: body
words:
- 'error'
negative: true
- '"url":'
- '"team_id":'
- '"user_id":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-travisci
info:
name: Travis CI API Test
author: zzeitlin
reference: https://developer.travis-ci.com/
severity: info
reference: https://developer.travis-ci.com/
tags: token-spray,travis
self-contained: true