MediaMath / t1-python

Python SDK for MediaMath Platform APIs
https://developer.mediamath.com/
Apache License 2.0
18 stars 30 forks source link

Make Reports a little easier to use #26

Closed pswaminathan closed 9 years ago

pswaminathan commented 9 years ago

We don't have an easy way of getting the proper URI stub for a method. Yes, you can guess based on the key in the metadata dict, but that's not the right way to use HATEOAS. So, add Report.report_uri in order to make that a little easier.

For Python 3, we need to decode the content (which, unlike most requests content, isn't automatically decoded) into a unicode string, rather than a byte sequence. So explicitly pass decode_unicode=True into iter_lines.

Lastly, add working examples to the docs.