Skip to content

Helper example still uses v5 api #817

@enugentdt

Description

@enugentdt

Issue Summary

The helpers example README still follows v5 api conventions, and has not updated. I'm including a PR to fix this.

For example:

 mail = Mail(from_email, subject, to_email, content)

should become:

 mail = Mail(from_email, to_email, subject, content)

The above was in the README as an example.

Also, I updated the last code block:
From:

    sg = SendGridAPIClient()
    data = build_kitchen_sink()
    response = sg.client.mail.send.post(request_body=data)

To:

    sg = SendGridAPIClient()
    data = build_kitchen_sink()
    response = sg.send(data)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions