Closed thomasdebugger closed 5 years ago
Hello,
the documentation (https://pypi.org/project/ovh/) states the following:
If an API needs an argument colliding with a Python reserved keyword, it can be prefixed with an underscore. For example, from argument of POST /email/domain/{domain}/redirection may be replaced by _from.
I suggest you change the from
parameter to _from
Looks like @geoffreybauduin got your issue. Feel free to reopen if needed.
I'm using Python3 and i try to get the bill for the projects with this reqest :
client = ovh.Client( endpoint='ovh-eu',
application_key='****',
application_secret='****',
consumer_key='**',
)
result = client.get('/cloud/project/'+ projectId+'/bill',from=d1,to=d2)
and i have a synthax error
ps: ProjectId is existing (i have checking with the api console) and d1='2019-01-01' d2='2019-06-06'
what's wrong ? I do a lot of auther request and they don't failled...