api.delete_resources, Cloudinary has no attribute 'api'

Comments

1 comment

  • Avatar
    Eric Pasos

    Hi James,

    The error message indicates that you have to import the cloudinary.api in your application, as shown in the code below:

    import cloudinary
    import cloudinary.api

    # Initialize cloudinary.config(...)
    ...
    cloudinary.api.delete_resources(["image1", "image2"])
    You can check this link for the demo example: https://www.anyfiddle.com/p/ecp_dev/5etus6ze
     
    Also, kindly refer to the following link for the Python SDK integration: https://cloudinary.com/documentation/django_integration
     
    Best regards,
    Eric
    0
    Comment actions Permalink

Please sign in to leave a comment.