Created
March 21, 2012 03:02
-
-
Save bryanhelmig/2143961 to your computer and use it in GitHub Desktop.
Revisions
-
bryanhelmig revised this gist
Mar 21, 2012 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,12 @@ require 'rubygems' require 'json' require 'net/http' require 'CGI' email = "email@totest.com" base_url = "http://emailpie.com/v1/check" url = "#{base_url}?email=#{CGI::escape(email)}" resp = Net::HTTP.get_response(URI.parse(url)) result = JSON.parse(resp.body) -
bryanhelmig renamed this gist
Mar 21, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
bryanhelmig renamed this gist
Mar 21, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
bryanhelmig revised this gist
Mar 21, 2012 . 1 changed file with 12 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1 +1,12 @@ $ch = curl_init(); $email = "email@totest.com"; $qs = "email=" . urlencode($email); $url = "http://emailpie.com/v1/check?" . $qs; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); $data = json_decode(curl_exec($ch)); curl_close($ch); echo $data; -
bryanhelmig revised this gist
Mar 21, 2012 . 2 changed files with 14 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,8 @@ import requests import simplejson email = 'email@totest.com' params = {'email': email} response = requests.get('http://emailpie.com/v1/check', params=params) response = simplejson.loads(response.content) This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1 +1,12 @@ require 'rubygems' require 'json' require 'net/http' email = "email@totest.com" base_url = "http://emailpie.com/v1/check" url = "#{base_url}?email=#{URI.encode(email)}" resp = Net::HTTP.get_response(URI.parse(url)) result = JSON.parse(resp.body) puts result -
bryanhelmig revised this gist
Mar 21, 2012 . 1 changed file with 10 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -39,4 +39,14 @@ "didyoumean": "tester@gmail.com", "errors": [], "success": true } // Finally, a good email! // http://emailpie.com/v1/check?email=tester@gmail.com { "didyoumean": null, "errors": [], "success": true } -
bryanhelmig revised this gist
Mar 21, 2012 . 1 changed file with 42 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,42 @@ // An invalid domain. // http://emailpie.com/v1/check?email=notreal@example.com { "didyoumean": null, "errors": [ { "message": "No MX records found for the domain.", "severity": 7 } ], "success": false } // A poorly formatted email. // http://emailpie.com/v1/check?email=invalidemail { "didyoumean": null, "errors": [ { "message": "Invalid email address.", "severity": 10 }, { "message": "No MX records found for the domain.", "severity": 7 } ], "success": false } // A good, but possibly misspelled email. // http://emailpie.com/v1/check?email=tester@gnail.com { "didyoumean": "tester@gmail.com", "errors": [], "success": true } -
bryanhelmig created this gist
Mar 21, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ # todo This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ import requests import simplejson params = {'email': 'email@totest.com'} response = requests.get('http://emailpie.com/v1/check', params=params) response = simplejson.loads(response.content) print(response) This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ # todo