Skip to content

Zencoder Reports Wrapper #15

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

Merged
merged 5 commits into from
Apr 5, 2013
Merged

Zencoder Reports Wrapper #15

merged 5 commits into from
Apr 5, 2013

Conversation

mcos
Copy link

@mcos mcos commented Oct 29, 2012

I've added the functionality in core.py to get usage reports from the Zencoder API. It should follow the conventions already present in the file. It should also conform to the documentation which can be found here: https://app.zencoder.com/docs/api/reports/minutes.

Please let me know if there are any issues or anything further I can add!

Thanks,
-Mark

@schworer
Copy link
Contributor

Thanks for submitting!

This is a good start -- three suggestions:

  • Report.details should be changed to Report.minutes to match the API
  • The docstring on Report should be updated to someting like: Contains all API methods relating to Reports.
  • The start_date and end_date kwargs are assumed to be strings -- it would probably be better to allow datetime objects to be passed in, then convert them to "YYYY-MM-DD" strings before sending the request to Zencoder.

If you want to make those suggested changes, please go for it! Otherwise, I'll merge your PR and make the changes myself.

Cheers
Alex

@mcos
Copy link
Author

mcos commented Oct 30, 2012

Excellent, I'll make those changes if you don't mind and I'll submit them in a few days, if that's cool?

Thanks for all the feedback, they definitely make sense, I just wanted to get something quick and dirty working to begin with...

Thanks,
-Mark

On Monday, October 29, 2012 at 7:31 PM, Alex Schworer wrote:

Thanks for submitting!
This is a good start -- three suggestions:
Report.details should be changed to Report.minutes to match the API
The docstring on Report should be updated to someting like: Contains all API methods relating to Reports.
The start_date and end_date kwargs are assumed to be strings -- it would probably be better to allow datetime objects to be passed in, then convert them to "YYYY-MM-DD" strings before sending the request to Zencoder.

If you want to make those suggested changes, please go for it! Otherwise, I'll merge your PR and make the changes myself.
Cheers
Alex


Reply to this email directly or view it on GitHub (#15 (comment)).

@schworer
Copy link
Contributor

Totally cool -- take your time for the changes. If you get stuck or pulled off to something else, let me know and I'll take it over.

@mcos
Copy link
Author

mcos commented Feb 18, 2013

It's taken some time, but I've added in these changes. Let me know what you think, hopefully it works to your requirements.

Cheers,
-Mark

@schworer
Copy link
Contributor

Thanks for making these changes, I should be able to pull these in pretty easily.

@mcos
Copy link
Author

mcos commented Feb 24, 2013

Cool, let me know if there are any issues or if more testing is required.

Cheers,
-Mark

On Sat, Feb 23, 2013 at 4:07 PM, Alex Schworer notifications@github.comwrote:

Thanks for making these changes, I should be able to pull these in pretty
easily.


Reply to this email directly or view it on GitHubhttps://github.com//pull/15#issuecomment-13997786.

schworer pushed a commit that referenced this pull request Apr 5, 2013
Closes pull request #15
@schworer schworer merged commit 1566c6c into zencoder:master Apr 5, 2013
@schworer
Copy link
Contributor

schworer commented Apr 5, 2013

Merged -- thank you!

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

Successfully merging this pull request may close these issues.

2 participants