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
import requests | |
files = {"file": ("addresses.txt", open("addresses.txt", "rb"), "text/plain")} | |
test_url = "https://zillow-com1.p.rapidapi.com/resolveAddressToZpid" | |
headers = { | |
"X-RapidAPI-Key": "", | |
"X-RapidAPI-Host": "zillow-com1.p.rapidapi.com", | |
} | |
test_response = requests.post(test_url, files = files, headers = headers) |
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
#!/bin/bash | |
trap 'echo "# $BASH_COMMAND";read' DEBUG | |
echo codeLine1 | |
echo codeLine2 | |
echo codeLine3 |
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
var endpoint = 'https://zillow-com1.p.rapidapi.com/property'; | |
var key = ''; | |
function _getValue(obj, path){ | |
var keys = path.split('.'); | |
var key = keys.shift(); | |
var value = null; | |
if (obj.hasOwnProperty(key)){ | |
var value = obj[key]; | |
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
PHP, OpenSSL and certificate verify failed error + cURL error 60 | |
Some times you may receive this error: | |
stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed | |
How to fix: | |
Download https://curl.haxx.se/ca/cacert.pem | |
In php.ini add openssl.cafile="/path/to/cacert.pem". |