I received an email informing me that there will be an API change and that the URLs should be changed:
Currently, it is possible to make requests using the base URLs http://sendgrid.com/api/ or https://sendgrid.com/api/. We will be deprecating these URLs on February 9th, 2016, and all SendGrid API calls must use https://api.sendgrid.com from that date on.
I checked sendgrid_integration.module and on line 88 it is:
$server = $protocol . 'sendgrid.com/api/mail.send.json';
Is it ok if I change that line to:
$server = $protocol . 'api.sendgrid.com/mail.send.json';
?
Thanks and sorry for not committing a patch (I don't know how to)
Comments
Comment #2
exlin CreditAttribution: exlin at Wunder commentedAs long API doesn't change it should be ok. Functionality after changing URL should be relatively easy to test.
Comment #4
Perignon CreditAttribution: Perignon commentedJust pushed an update. Let me know if it works. I do not have Drupal 6 installed to do any testing. Actually have never touched D6... :-D
Comment #5
Perignon CreditAttribution: Perignon commentedComment #6
enekoalonso CreditAttribution: enekoalonso as a volunteer commentedHello guys!
The actual URL, as seen at the www.sendgrid.com home page is api.sendgrid.com/api/mail.send.json
The code should read:
$server = $protocol . 'api.sendgrid.com/api/mail.send.json';
Note the two mentions of "api" on subdomain and url path.
Eneko
Comment #7
enekoalonso CreditAttribution: enekoalonso as a volunteer commentedSee my previous comment ^^
Comment #8
enekoalonso CreditAttribution: enekoalonso as a volunteer commented@Perignon, I'd be happy to contribute the code change, never done it before. I have a D6 site running with this module and the URL I pasted works well.
Regards,
Eneko
Comment #10
Perignon CreditAttribution: Perignon commentedUpdate is going into 6.x-1.x-dev. Give it a spin and let me know if that fixes the problem.
Comment #11
enekoalonso CreditAttribution: enekoalonso as a volunteer commentedThe URL update works great, thanks! Closing the issue as fixed.
Comment #12
Perignon CreditAttribution: Perignon commentedWoohoo!