@@ -36,15 +36,15 @@ func NewBrowserService(opts ...option.RequestOption) (r BrowserService) {
3636 return
3737}
3838
39- // Create Browser Session
39+ // Create a new browser session from within an action.
4040func (r * BrowserService ) New (ctx context.Context , body BrowserNewParams , opts ... option.RequestOption ) (res * BrowserNewResponse , err error ) {
4141 opts = append (r .Options [:], opts ... )
4242 path := "browsers"
4343 err = requestconfig .ExecuteNewRequest (ctx , http .MethodPost , path , body , & res , opts ... )
4444 return
4545}
4646
47- // Get Browser Session by ID
47+ // Get information about a browser session.
4848func (r * BrowserService ) Get (ctx context.Context , id string , opts ... option.RequestOption ) (res * BrowserGetResponse , err error ) {
4949 opts = append (r .Options [:], opts ... )
5050 if id == "" {
@@ -56,15 +56,15 @@ func (r *BrowserService) Get(ctx context.Context, id string, opts ...option.Requ
5656 return
5757}
5858
59- // List active browser sessions for the authenticated user
59+ // List active browser sessions
6060func (r * BrowserService ) List (ctx context.Context , opts ... option.RequestOption ) (res * []BrowserListResponse , err error ) {
6161 opts = append (r .Options [:], opts ... )
6262 path := "browsers"
6363 err = requestconfig .ExecuteNewRequest (ctx , http .MethodGet , path , nil , & res , opts ... )
6464 return
6565}
6666
67- // Delete a persistent browser session by persistent_id query parameter .
67+ // Delete a persistent browser session by its persistent_id .
6868func (r * BrowserService ) Delete (ctx context.Context , body BrowserDeleteParams , opts ... option.RequestOption ) (err error ) {
6969 opts = append (r .Options [:], opts ... )
7070 opts = append ([]option.RequestOption {option .WithHeader ("Accept" , "" )}, opts ... )
@@ -73,7 +73,7 @@ func (r *BrowserService) Delete(ctx context.Context, body BrowserDeleteParams, o
7373 return
7474}
7575
76- // Delete Browser Session by ID
76+ // Delete a browser session by ID
7777func (r * BrowserService ) DeleteByID (ctx context.Context , id string , opts ... option.RequestOption ) (err error ) {
7878 opts = append (r .Options [:], opts ... )
7979 opts = append ([]option.RequestOption {option .WithHeader ("Accept" , "" )}, opts ... )
0 commit comments