Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
47 lines (42 loc) · 1.26 KB

File metadata and controls

47 lines (42 loc) · 1.26 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.sendgrid;
/**
* Class Twilio SendGrid allows for quick and easy access to the Twilio SendGrid API.
*/
public class SendGrid extends BaseInterface {
/**
* Construct a new Twilio SendGrid API wrapper.
*
* @param apiKey is your Twilio SendGrid API Key: https://app.sendgrid.com/settings/api_keys
*/
public SendGrid(final String apiKey) {
initializeSendGrid(apiKey);
}
/**
* Construct a new Twilio SendGrid API wrapper.
*
* @param apiKey is your Twilio SendGrid API Key: https://app.sendgrid.com/settings/api_keys
* @param test is true if you are unit testing
*/
public SendGrid(final String apiKey, final Boolean test) {
super(test);
initializeSendGrid(apiKey);
}
/**
* Construct a new Twilio SendGrid API wrapper.
*
* @param apiKey is your Twilio SendGrid API Key: https://app.sendgrid.com/settings/api_keys
* @param client the Client to use (allows to customize its configuration)
*/
public SendGrid(final String apiKey, final Client client) {
super(client);
initializeSendGrid(apiKey);
}
/**
* Initialize the client.
*
* @param apiKey the user's API key
*/
public void initializeSendGrid(final String apiKey) {
this.initialize("Bearer " + apiKey, "api.sendgrid.com");
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.