trying failing
This commit is contained in:
@@ -96,21 +96,26 @@ def get_contacts(rower):
|
|||||||
headers = {
|
headers = {
|
||||||
'Authorization': authorizationstring,
|
'Authorization': authorizationstring,
|
||||||
'User-Agent': f"{FAKTUROID_APP_NAME} ({FAKTUROID_EMAIL})",
|
'User-Agent': f"{FAKTUROID_APP_NAME} ({FAKTUROID_EMAIL})",
|
||||||
'Content-Type': 'application/json',
|
#'Content-Type': 'application/json',
|
||||||
}
|
}
|
||||||
|
|
||||||
#url = contacts_search_url+'?query='+urllib.parse.quote(rower.user.email)
|
url = contacts_search_url #+'?query='+urllib.parse.quote(rower.user.email)
|
||||||
url = contacts_search_url
|
|
||||||
params = {
|
params = {
|
||||||
'query':urllib.parse.quote(rower.user.email)
|
"email": rower.user.email,
|
||||||
}
|
}
|
||||||
|
|
||||||
dologging('braintreewebhooks.log','Searching Contact url :'+str(url))
|
dologging('braintreewebhooks.log','Searching Contact url :'+str(url))
|
||||||
|
|
||||||
print(url)
|
print(url)
|
||||||
print(headers)
|
print(headers)
|
||||||
print(params)
|
print(params)
|
||||||
|
|
||||||
res = requests.get(url, headers=headers, params=params)
|
res = requests.get(
|
||||||
|
url,
|
||||||
|
headers=headers,
|
||||||
|
params=params,
|
||||||
|
)
|
||||||
|
#res = requests.get(url, headers=headers, params=params)
|
||||||
|
|
||||||
print(res.status_code,res.text,res.reason, "aap")
|
print(res.status_code,res.text,res.reason, "aap")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user