Skip to content

Commit

Permalink
serials vs. devices param name
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepeterson committed Nov 18, 2022
1 parent cc58356 commit 0cbf4ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions godep/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ type DeviceListResponse struct {
// DeviceDetails uses the Apple "Get Device Details" API endpoint to get the
// details on a set of devices.
// See https://developer.apple.com/documentation/devicemanagement/get_device_details
func (c *Client) DeviceDetails(ctx context.Context, name string, devices ...string) (*DeviceListResponse, error) {
func (c *Client) DeviceDetails(ctx context.Context, name string, serials ...string) (*DeviceListResponse, error) {
req := struct {
Devices []string `json:"devices"`
}{
Devices: devices,
Devices: serials,
}
resp := new(DeviceListResponse)
return resp, c.do(ctx, name, http.MethodPost, "/devices", req, resp)
Expand Down

0 comments on commit 0cbf4ee

Please sign in to comment.