Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrafficHistory issue with adding in parameters #17

Open
ElliotP123 opened this issue Apr 4, 2018 · 1 comment
Open

TrafficHistory issue with adding in parameters #17

ElliotP123 opened this issue Apr 4, 2018 · 1 comment

Comments

@ElliotP123
Copy link

Evening,

I'm trying to use the traffic history response group but I'm unable to add in the range and start parameters successfully. When I just run the query it returns successfully with the default values, I've tried a few combinations but I can't seem to get it to come together.

I'm also struggling to parse the response, I am receiving a successful response but I follow the example of URLInfo at the top of the README doc I encounter some issues.

@fyzbt
Copy link

fyzbt commented Feb 28, 2019

The example from the README doesn't help at all, it's true. I had the same error. If you look at the source code though, you can see that the parameters can be set manually if you specify them directly the following way:

obj = CallAwis(ACCESS, SECRET)
obj.traffichistory(URL, myrange=RANGE, start=START_DATE)

START_DATE must be in YYYMMDD format as stated in official AWIS docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants