Skip to content

Commit

Permalink
Update README and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkingserious committed Jun 20, 2016
1 parent 3bec69c commit 77731f2
Show file tree
Hide file tree
Showing 24 changed files with 1 addition and 300 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ gem install sendgrid-ruby

## Dependencies

- The SendGrid Service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-ruby))
- The SendGrid Service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-ruby)
- [Ruby-HTTP-Client](https://github.com/sendgrid/ruby-http-client)

# Quick Start
Expand Down
13 changes: 0 additions & 13 deletions examples/accesssettings/accesssettings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Retrieve all recent access attempts #
# GET /access_settings/activity #
Expand Down
13 changes: 0 additions & 13 deletions examples/apikeys/apikeys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Create API keys #
# POST /api_keys #
Expand Down
13 changes: 0 additions & 13 deletions examples/asm/asm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Create a new suppression group #
# POST /asm/groups #
Expand Down
13 changes: 0 additions & 13 deletions examples/browsers/browsers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Retrieve email statistics by browser. #
# GET /browsers/stats #
Expand Down
13 changes: 0 additions & 13 deletions examples/campaigns/campaigns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Create a Campaign #
# POST /campaigns #
Expand Down
13 changes: 0 additions & 13 deletions examples/categories/categories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Retrieve all categories #
# GET /categories #
Expand Down
13 changes: 0 additions & 13 deletions examples/clients/clients.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Retrieve email statistics by client type. #
# GET /clients/stats #
Expand Down
13 changes: 0 additions & 13 deletions examples/contactdb/contactdb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Create a Custom Field #
# POST /contactdb/custom_fields #
Expand Down
13 changes: 0 additions & 13 deletions examples/devices/devices.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Retrieve email statistics by device type. #
# GET /devices/stats #
Expand Down
13 changes: 0 additions & 13 deletions examples/geo/geo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Retrieve email statistics by country and state/province. #
# GET /geo/stats #
Expand Down
13 changes: 0 additions & 13 deletions examples/ips/ips.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Retrieve all IP addresses #
# GET /ips #
Expand Down
13 changes: 0 additions & 13 deletions examples/mail/mail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Create a batch ID #
# POST /mail/batch #
Expand Down
13 changes: 0 additions & 13 deletions examples/mailboxproviders/mailboxproviders.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Retrieve email statistics by mailbox provider. #
# GET /mailbox_providers/stats #
Expand Down
13 changes: 0 additions & 13 deletions examples/mailsettings/mailsettings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Retrieve all mail settings #
# GET /mail_settings #
Expand Down
13 changes: 0 additions & 13 deletions examples/partnersettings/partnersettings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Returns a list of all partner settings. #
# GET /partner_settings #
Expand Down
13 changes: 0 additions & 13 deletions examples/scopes/scopes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Retrieve a list of scopes for which this user has access. #
# GET /scopes #
Expand Down
13 changes: 0 additions & 13 deletions examples/stats/stats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Retrieve global email statistics #
# GET /stats #
Expand Down
13 changes: 0 additions & 13 deletions examples/subusers/subusers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Create Subuser #
# POST /subusers #
Expand Down
13 changes: 0 additions & 13 deletions examples/suppression/suppression.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.sendgrid.Client;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

##################################################
# Retrieve all blocks #
# GET /suppression/blocks #
Expand Down
Loading

0 comments on commit 77731f2

Please sign in to comment.