uploadcare/pyuploadcare

Update webhooks API (event types and versioning)

Closed this issue · 3 comments

New event types. Current enum:

  • file.uploaded
  • file.infected (it will be deprecated in favor of info_upldated in the future updates)
  • file.stored
  • file.deleted
  • file.info_updated

https://uploadcare.com/docs/webhooks/#event-types

image

Also, please check the versioning. It's easier to just send current API version, because from within API 0.7 you can't create 0.6 anyways (but you'll be able to create 0.8 when they it is released).

image

Payload is also updated (new initiator field), but since it's not part of the library, nothing is to update here.

p.s. Don't forget to update uploadcare-php-example if necessary.

@evgkirov I see it's done. Are there anything to change in pyuploadcare-example?

Added a type hint there for better validation and nice IDE/LSP completions.

Haven't checked pyuploadcare-example yet.

PR #269

Merged.

version field is ok.