edoardottt / bugcrowd-go

Golang Bugcrowd API client

Home Page:https://edoardoottavianelli.it

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Golang Bugcrowd API client

https://edoardoottavianelli.it

License:MIT License


Languages

Language:Go 100.0%