ovh / python-ovh

Thin wrapper around OVH's APIs. Handles all the hard work including credential creation and requests signing.
https://pypi.org/project/ovh/
Other
278 stars 76 forks source link

This call has not been granted #86

Closed elfarsaouiomar closed 4 years ago

elfarsaouiomar commented 4 years ago

i create application_key, application_secret and consumer_key followin this blog https://docs.ovh.com/gb/en/customer/first-steps-with-ovh-api/ . but when i run my code i got error : ovh.exceptions.NotGrantedCall: This call has not been granted

Note: when i chose Validity for 5 min it work but when i chose {} i got error


application_key = getenv("application_key")
application_secret = getenv("application_secret")
consumer_key = getenv("consumer_key")
client = ovh.Client(
    endpoint='ovh-eu',
    application_key=application_key,
    application_secret=application_secret,
    consumer_key=consumer_key,
)
result = client.get("/me")
print(json.dumps(result, indent=4))
elfarsaouiomar commented 4 years ago

i create application_key, application_secret and consumer_key followin this blog https://docs.ovh.com/gb/en/customer/first-steps-with-ovh-api/ . but when i run my code i got error : ovh.exceptions.NotGrantedCall: This call has not been granted

Note: when i chose Validity for 5 min it work but when i chose {} i got error

application_key = getenv("application_key")
application_secret = getenv("application_secret")
consumer_key = getenv("consumer_key")
client = ovh.Client(
    endpoint='ovh-eu',
    application_key=application_key,
    application_secret=application_secret,
    consumer_key=consumer_key,
)
result = client.get("/me")
print(json.dumps(result, indent=4))