Hello everyone,
I’m totally new to pipiedrive. I want use python in VBC to use names from leads to collect data from Xing or LinkedIn. With the email-adress of the that lead, i want to find the company for which those persons are working. If i have that site i want collect the informations about the imprint. So that i can update the informations in the Pipedrive Database.
I used different versions of code in Python but i can`t find a connection that worked.
I used to try:
import json
import requests
token = {
‘api_token’: ‘mytoken’
}
get_url = ‘https://domainname.pipedrive.com/pipeline’
The params argument is appended to the url as a query parameter.
get_response = requests.get(get_url, params=token)
get_content = json.loads(get_response.content)
Upon success, the key ‘success’ will equal True.
print(get_content[‘success’])
I’m getting the following feedback:
PS C:\Users\bjoer\Desktop\pipedrive> & C:/Users/bjoer/AppData/Local/Programs/Python/Python311/python.exe c:/Users/bjoer/Desktop/pipedrive/pipedrive
Traceback (most recent call last):
File “c:\Users\bjoer\Desktop\pipedrive\pipedrive”, line 29, in
get_content = json.loads(get_response.content)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\bjoer\AppData\Local\Programs\Python\Python311\Lib\json_init_.py”, line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\bjoer\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\bjoer\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py”, line 355, in raw_decode
raise JSONDecodeError(“Expecting value”, s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)