This call has not been granted
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
question

This call has not been granted

Par
OmarO
Créé le 2020-02-14 09:02:30 (edited on 2024-09-04 11:02:35) dans Domaines et DNS

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**

my code

> 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))


Les réponses sont actuellement désactivées pour cette question.