Skip to content
Get started

Delete

client.Pets.Delete(ctx, petID, body) (*PetDeleteResponse, error)
DELETE/pets/{petId}
ParametersExpand Collapse
petID float64
body PetDeleteParams
Body param.Field[PetDeleteParamsBody]optional
ReturnsExpand Collapse
type PetDeleteResponse struct{…}
Message string

Delete

package main

import (
  "context"
  "fmt"

  "github.com/pedro/barkend"
  "github.com/pedro/barkend/option"
)

func main() {
  client := barkend.NewClient(
    option.WithBearerToken("My Bearer Token"),
  )
  pet, err := client.Pets.Delete(
    context.TODO(),
    0,
    barkend.PetDeleteParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", pet.Message)
}
{
  "message": "message"
}
Returns Examples
{
  "message": "message"
}