Jump to content

In Python API call fetching issue


Bhoopesh Kumar

Recommended Posts

I know this question already available but I am facing same issue. Please help me on it.


Python code

import requests
headers = { 'APIKey': "xxxxxx", 'Content-Type': 'application/json' }
uri = "https://pwd.xxxxx.co/api/passwords/"+str(xxxxx)+"?QueryAll"
response = requests.get(uri, headers=headers, verify=False)

 

response.content output:
b'[{"errors":[{"message":"No Authorization"},{"phrase":"An error has occurred trying to validate the API Key for PasswordListID \'XXXX\'. Please check the PasswordListID and API Key values have been specified, and are correct."}]}]'

 

 

 

Also facing same issue in PowerShell script

>Powershell.exe .\passwordstate_api_call.ps1
Invoke-RestMethod :

[{"errors":[{"message":"No Authorization"},{"phrase":"An error has occurred trying to validate the
API Key for PasswordListID 'XXXX'. Please check the PasswordListID and API Key values have been specified, and are correct."}]}]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...