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 characters
| from requests.auth import HTTPBasicAuth | |
| from datetime import datetime, timedelta | |
| prospector_url = 'https://prospector.clearbit.com/v1/people/search?' | |
| # Add your own api key | |
| clarbit_api_key = API_KEY | |
| now_pst = str(datetime.now() - timedelta(hours=8)) | |
| autoProspectedCampaign = input['autoProspectedCampaign'] |
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 characters
| /* | |
| * Based on https://css-tricks.com/snippets/javascript/get-url-variables/ | |
| * @param {String} url The URL | |
| * @return {Object} The URL parameters if there are any, if not return undefined | |
| */ | |
| var getParams = function(url) { | |
| var params = {}; | |
| var parser = document.createElement("a"); | |
| parser.href = url; | |
| var query = parser.search.substring(1); |
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 characters
| var getUrlParams = function() { | |
| let search = location.search | |
| if (!search) return {} | |
| return search.slice(1).split('&').reduce(function (obj, param) { | |
| let pair = param.split('=') | |
| obj[pair[0]] = pair[1] | |
| return obj | |
| },{}) | |
| }; |
OlderNewer