Skip to content

DefaultClient.API undefined (rest.Client has no field or method API) #240

@jackgardner

Description

@jackgardner

Issue Summary

A change was made recently in sendgrid/rest to rename Client.API to Client.Send (sendgrid/rest#19) - currently if someone runs go get, this will mean sendgrid-go is broken. We need a PR to bring that change across to this package.

Steps to Reproduce

  1. go get -u
  2. Observe the following:
../../sendgrid/sendgrid-go/sendgrid.go:54:2: not enough arguments to return
../../sendgrid/sendgrid-go/sendgrid.go:54:22: DefaultClient.API undefined (type *rest.Client has no field or method API)

Technical details:

  • sendgrid-go Version: master (latest commit: [ 238cd04 ])
  • Go Version: 1.9.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions