Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #38 from vulncheck-oss/tag-pdns-param
Browse files Browse the repository at this point in the history
Adds back param to tags and pdns
  • Loading branch information
tcampbPPU authored Aug 2, 2024
2 parents a107219 + fde0730 commit 3517983
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions pdns.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package sdk
import (
"io"
"net/http"
"net/url"
)

// https://docs.vulncheck.com/api/pdns
func (c *Client) GetPdns() (string, error) {
func (c *Client) GetPdns(list string) (string, error) {
client := &http.Client{}
req, err := http.NewRequest("GET", c.GetUrl()+"/v3/pdns/vulncheck-c2", nil)
req, err := http.NewRequest("GET", c.GetUrl()+"/v3/pdns/"+url.QueryEscape(list), nil)
if err != nil {
panic(err)
}
Expand Down
5 changes: 3 additions & 2 deletions tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package sdk
import (
"io"
"net/http"
"net/url"
)

// https://docs.vulncheck.com/api/tags
func (c *Client) GetTag() (string, error) {
func (c *Client) GetTag(tag string) (string, error) {
client := &http.Client{}
req, err := http.NewRequest("GET", c.GetUrl()+"/v3/tags/vulncheck-c2", nil)
req, err := http.NewRequest("GET", c.GetUrl()+"/v3/tags/"+url.QueryEscape(tag), nil)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 3517983

Please sign in to comment.