Simple Golang client to interact with Bugcrowd API. See the API documentation here.
package main
import (
"context"
"fmt"
bugcrowd "github.com/edoardottt/bugcrowd-go"
"github.com/edoardottt/bugcrowd-go/pkg/api"
)
func main() {
b := bugcrowd.New("username", "token")
queryOptions := api.SubmissionQuery{}
pageOptions := api.PageOptions{}
submissions, _, err := b.Services.FetchSubmissions(context.TODO(), &queryOptions, &pageOptions)
if err != nil {
fmt.Println(err)
}
for _, submission := range submissions.Data {
fmt.Println(submission.ID)
}
}
Just open an issue / pull request.
Before opening a pull request, download golangci-lint and run
golangci-lint run
If there aren't errors, go ahead :)
Inspired by liamg/hackerone.
This repository is under MIT License.
edoardottt.com to contact me.