Skip to content

Commit

Permalink
feat: ability to supply options and query to the list projects endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyuan committed May 5, 2024
1 parent 164dd31 commit 90f2525
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sentry/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,16 @@ type ProjectSummaryTeam struct {
// https://docs.sentry.io/api/projects/
type ProjectsService service

type ListProjectsParams struct {
ListCursorParams

Options string `url:"options,omitempty"`
Query string `url:"query,omitempty"`
}

// List projects available.
// https://docs.sentry.io/api/projects/list-your-projects/
func (s *ProjectsService) List(ctx context.Context, params *ListCursorParams) ([]*Project, *Response, error) {
func (s *ProjectsService) List(ctx context.Context, params *ListProjectsParams) ([]*Project, *Response, error) {
u := "0/projects/"
u, err := addQuery(u, params)
if err != nil {
Expand Down

0 comments on commit 90f2525

Please sign in to comment.