trying to get infor about a specific email |
I am trying to check an email address on the sendPulse mail list. I was given these two links on how to do it.
https://github.com/sendpulse/sendpulse-rest-api-php https://sendpulse.com/integrations/api/b...email-info The second asks me to send a Get request to this email address: https://api.sendpulse.com/emails/{email} What CI function do I use to send that "get request"?
If you quit coping and pasting you might get an answer no one is going to try and read that garbage.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
If you're using CI4 then you can use https://codeigniter.com/user_guide/libra...quest.html
(06-16-2021, 07:11 AM)craig Wrote: If you're using CI4 then you can use https://codeigniter.com/user_guide/libra...quest.htmlI am using CI3 at this point.
proof that an old dog can learn new tricks
In that case I would either use the PHP library suggested or install an HTTP client package like Guzzle.
(06-16-2021, 07:47 AM)craig Wrote: In that case I would either use the PHP library suggested or install an HTTP client package like Guzzle.
proof that an old dog can learn new tricks
(06-16-2021, 07:20 AM)richb201 Wrote:(06-16-2021, 07:11 AM)craig Wrote: If you're using CI4 then you can use https://codeigniter.com/user_guide/libra...quest.htmlI am using CI3 at this point. You can still use CURL with CI3. You just need to do all the work yourself (init, exec, close). https://www.php.net/manual/en/book.curl
Thanks. I managed to get the "token" from the site by using Postman. Now I just need to figure out how to get the string that Postman created so I can paste it into my CURL statement.
Thanks all for your help. Only by using postman was I able to play with the API for sendPulse. Finally go that working.
proof that an old dog can learn new tricks
|
Welcome Guest, Not a member yet? Register Sign In |