ns1 / nsone-python

NS1 Python SDK
https://nsone.net
MIT License
19 stars 20 forks source link

The usage method for the entire account fails on http request #16

Closed shalomcarmel closed 7 years ago

shalomcarmel commented 7 years ago

My code

nsone=NSONE(configFile=configFile, keyID='globaldots')
usage=nsone.stats().usage(period="30d", aggregate="true", by_tier="false")

This is what goes out to the server: GET /v1/('stats/usage',)?aggregate=True&period=30d&by_tier=True HTTP/1.1" and of course it fails with 404

jyuan0 commented 7 years ago

Hi @shalomcarmel, thank you for the bug report. The bug will be fixed shortly.