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

Specify report_status values #76

Closed
IzeBerg opened this issue Sep 22, 2022 · 3 comments
Closed

Specify report_status values #76

IzeBerg opened this issue Sep 22, 2022 · 3 comments

Comments

@IzeBerg
Copy link

IzeBerg commented Sep 22, 2022

Asynchronous reports API does not have a specification of values that report_stats can be.

https://developers.pinterest.com/docs/api/v5/#operation/analytics/get_report
https://github.com/pinterest/api-quickstart/blob/main/python/src/async_report.py

@davidchaiken
Copy link
Collaborator

Good point! I'll ask the Pinterest Development Platform technical documentation expert for their advice on the best way to address this need.

@davidchaiken
Copy link
Collaborator

I discussed with the documentation expert and the development team, and we agree that we should provide a specification for the values of report_status. I opened a task for the team to do this work.

In the meantime, I found the complete list of status values in our API code...

class JobStatusValues(Enum):
    # All possible status values for bulk reporting jobs stored here
    DOES_NOT_EXIST = 'DOES_NOT_EXIST'
    FINISHED = 'FINISHED'
    IN_PROGRESS = 'IN_PROGRESS'
    EXPIRED = 'EXPIRED'
    FAILED = 'FAILED'
    CANCELLED = 'CANCELLED'

It will probably take us some time to grep the code to make sure that we understand the exact meaning of these values and release this information as part of the API specification.

@renat-iliev-cndt
Copy link

Thanks a lot!

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

3 participants