2017 © Pedro Peláez
 

library sendgrid-web

A simple API wrapper, focussed on sendgrid's web api

image

evodelavega/sendgrid-web

A simple API wrapper, focussed on sendgrid's web api

  • Tuesday, September 30, 2014
  • by EVODelavega
  • Repository
  • 1 Watchers
  • 0 Stars
  • 326 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 6 % Grown

The README.md

sendgrid-web

wrapper for the sendgrid web API (get bounce lists, statistics, invalid emails, etc...), (*1)

Usage

Using the api couldn't be simpler: just create a Config instance, by passing an array with a user and pass key (with optional baseUrl and output keys if required). This object should then be passed to any Api class you need to use. Each class implements the basic API-calls, implemented as methods, and some helper methods. For example, the Block api has a delete call, which deletes an email address. This wrapper implements a deleteEmail method that maps to this call, but also implements a deleteEmails method. This method allows you to pass an array of email addresses, instead of having to call the API one by one., (*2)

The example.php file requires a example_params.json file, containing the config you want to use. The json file is added to .gitignore, so no worries about accidental commits there. An example of this json file:, (*3)

{"user": "username", "pass": "MyPassword", "baseUrl": "https://my.sendgrid.url/api/"}

Note the format of the baseUrl parameter., (*4)

The Versions

30/09 2014

dev-master

9999999-dev

A simple API wrapper, focussed on sendgrid's web api

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • lib-curl *

 

api statistics email sendgrid web block reports bounce invalid