Skip to content

edoardottt/bugcrowd-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bugcrowd-go

Simple Golang client to interact with Bugcrowd API. See the API documentation here.

workflows goreportcard

Usage 🚀

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)
	}
}

Contributing 🛠

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.

License 📝

This repository is under MIT License.
edoardoottavianelli.it to contact me.