Skip to content

Commit 90f2525

Browse files
committed
feat: ability to supply options and query to the list projects endpoint
1 parent 164dd31 commit 90f2525

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

sentry/projects.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,16 @@ type ProjectSummaryTeam struct {
9292
// https://docs.sentry.io/api/projects/
9393
type ProjectsService service
9494

95+
type ListProjectsParams struct {
96+
ListCursorParams
97+
98+
Options string `url:"options,omitempty"`
99+
Query string `url:"query,omitempty"`
100+
}
101+
95102
// List projects available.
96103
// https://docs.sentry.io/api/projects/list-your-projects/
97-
func (s *ProjectsService) List(ctx context.Context, params *ListCursorParams) ([]*Project, *Response, error) {
104+
func (s *ProjectsService) List(ctx context.Context, params *ListProjectsParams) ([]*Project, *Response, error) {
98105
u := "0/projects/"
99106
u, err := addQuery(u, params)
100107
if err != nil {

0 commit comments

Comments
 (0)