eliksir / sendgrid-subuser-api
Library to easily work with the SendGrid Subuser API
Installs: 13 091
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 2
Open Issues: 1
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2025-02-25 14:59:27 UTC
README
This PHP library makes it easy to work with the SendGrid Subuser API. It was made to scratch our own itch, and as such it currently only implements the parts of the API that we needed. Please feel free to request additional features or send pull requests.
Basic Usage
$sendgrid = new SendGrid\Api("my_username", "my_password"); // Create a new sub user $user = new SendGrid\SubUser("wanted_username", "password", "email@example.com", "email.domain.example.com"); $sendgrid->addSubUser($user); // Retrieve existing sub user $other = $sendgrid->getSubUser("sub_username"); // Assign IPs to a user $other->assignIps(array("1.2.3.4"));
See example/example.php
for more examples.