Created
February 24, 2017 15:17
-
-
Save tacitochaves/3a959b40bb08f4698a5705dd8a35d014 to your computer and use it in GitHub Desktop.
E-mail Exists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use LWP; | |
# emailhippo | |
https://portal.emailhippo.com/Account/Login | |
# The url for the service | |
my $ApiUrl = "https://api1.27hub.com/api/emh/a/v2"; | |
# The format of the full query string | |
my $QueryFormatString = "%s?k=%s&e=%s"; | |
print "Enter Email:\n"; | |
my $readLine = <STDIN>; | |
# The API key provided for your account goes here | |
my $YourAPIKey = "fdfdcds889"; | |
# Format the url request | |
my $requestUrl = sprintf $QueryFormatString, $ApiUrl, $YourAPIKey, $readLine ; | |
# Make the request against the REST service | |
my $browser = LWP::UserAgent->new; | |
my $response = $browser->get($requestUrl); | |
# Print the response | |
print $response->content, "\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment