--- a/vendor/github.com/sendgrid/rest/README.md Mon Jun 07 20:58:18 2021 +0200
+++ b/vendor/github.com/sendgrid/rest/README.md Sun Jul 11 10:35:56 2021 +0200
@@ -1,26 +1,26 @@
-![SendGrid Logo](https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png)
+![SendGrid Logo](twilio_sendgrid_logo.png)
-[![Build Status](https://travis-ci.org/sendgrid/rest.svg?branch=master)](https://travis-ci.org/sendgrid/rest)
+[![Build Status](https://travis-ci.com/sendgrid/rest.svg?branch=main)](https://travis-ci.com/sendgrid/rest)
[![GoDoc](https://godoc.org/github.com/sendgrid/rest?status.png)](http://godoc.org/github.com/sendgrid/rest)
[![Go Report Card](https://goreportcard.com/badge/github.com/sendgrid/rest)](https://goreportcard.com/report/github.com/sendgrid/rest)
[![Email Notifications Badge](https://dx.sendgrid.com/badge/go)](https://dx.sendgrid.com/newsletter/go)
[![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social&label=Follow)](https://twitter.com/sendgrid)
[![GitHub contributors](https://img.shields.io/github/contributors/sendgrid/rest.svg)](https://github.com/sendgrid/rest/graphs/contributors)
-[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE.txt)
+[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
**Quickly and easily access any RESTful or RESTful-like API.**
If you are looking for the SendGrid API client library, please see [this repo](https://github.com/sendgrid/sendgrid-go).
# Announcements
+**The default branch name for this repository has been changed to `main` as of 07/27/2020.**
-All updates to this library is documented in our [CHANGELOG](https://github.com/sendgrid/rest/blob/master/CHANGELOG.md).
+All updates to this library is documented in our [CHANGELOG](CHANGELOG.md).
# Table of Contents
- [Installation](#installation)
- [Quick Start](#quick-start)
- [Usage](#usage)
-- [Roadmap](#roadmap)
- [How to Contribute](#contribute)
- [About](#about)
- [License](#license)
@@ -56,6 +56,46 @@
source ./sendgrid.env
```
+## With Docker
+
+A Docker image has been created to allow you to get started with `rest` right away.
+
+```bash
+docker-compose up -d --build
+
+# Ensure the container is running with 'docker ps'
+docker ps
+CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
+40c8d984a620 rest_go "tail -f /dev/null" About a minute ago Up About a minute rest_go_1
+```
+
+With the container running, you can execute your local `go` scripts using the following:
+
+```bash
+# docker exec <container_name> <go command>
+docker exec rest_go_1 go run docker/example.go
+200
+{
+ "args": {},
+ "headers": {
+ "Accept-Encoding": "gzip",
+ "Connection": "close",
+ "Host": "httpbin.org",
+ "User-Agent": "Go-http-client/1.1"
+ },
+ "origin": "86.180.177.202",
+ "url": "https://httpbin.org/get"
+}
+
+map[Access-Control-Allow-Origin:[*] Access-Control-Allow-Credentials:[true] Via:[1.1 vegur] Connection:[keep-alive] Server:[gunicorn/19.9.0] Date:[Tue, 02 Oct 2018 18:20:43 GMT] Content-Type:[application/json] Content-Length:[233]]
+
+# You can install libraries too, using the same command
+# NOTE: Any libraries installed will be removed when the container is stopped.
+docker exec rest_go_1 go get github.com/uniplaces/carbon
+```
+
+Your go files will be executed relative to the root of this directory. So in the example above, to execute the `example.go` file within the `docker` directory, we run `docker exec rest_go_1 go run docker/example.go`. If this file was in the root of this repository (next to README.exe, rest.go etc.), you would run `docker exec rest_go_1 go run my_go_script.go`
+
<a name="quick-start"></a>
# Quick Start
@@ -133,30 +173,27 @@
- [Usage Examples](USAGE.md)
-<a name="roadmap"></a>
-# Roadmap
-
-If you are interested in the future direction of this project, please take a look at our [milestones](https://github.com/sendgrid/rest/milestones). We would love to hear your feedback.
-
<a name="contribute"></a>
# How to Contribute
-We encourage contribution to our projects, please see our [CONTRIBUTING](https://github.com/sendgrid/rest/blob/master/CONTRIBUTING.md) guide for details.
+We encourage contribution to our projects, please see our [CONTRIBUTING](CONTRIBUTING.md) guide for details.
Quick links:
-- [Feature Request](https://github.com/sendgrid/rest/blob/master/CONTRIBUTING.md#feature-request)
-- [Bug Reports](https://github.com/sendgrid/rest/blob/master/CONTRIBUTING.md#submit-a-bug-report)
-- [Sign the CLA to Create a Pull Request](https://github.com/sendgrid/rest/blob/master/CONTRIBUTING.md#cla)
-- [Improvements to the Codebase](https://github.com/sendgrid/rest/blob/master/CONTRIBUTING.md#improvements-to-the-codebase)
+- [Feature Request](CONTRIBUTING.md#feature-request)
+- [Bug Reports](CONTRIBUTING.md#submit-a-bug-report)
+- [Improvements to the Codebase](CONTRIBUTING.md#improvements-to-the-codebase)
+- [Code Reviews](CONTRIBUTING.md#code-reviews)
<a name="about"></a>
# About
-rest is guided and supported by the SendGrid [Developer Experience Team](mailto:dx@sendgrid.com).
+rest is maintained and funded by Twilio SendGrid, Inc. The names and logos for rest are trademarks of Twilio SendGrid, Inc.
-rest is maintained and funded by SendGrid, Inc. The names and logos for rest are trademarks of SendGrid, Inc.
+If you need help installing or using the library, please check the [Twilio SendGrid Support Help Center](https://support.sendgrid.com).
+
+If you've instead found a bug in the library or would like new features added, go ahead and open issues or pull requests against this repo!
<a name="license"></a>
# License
-[The MIT License (MIT)](LICENSE.txt)
+[The MIT License (MIT)](LICENSE)