How to upload and retrieve image for event created

29 views
Skip to first unread message

Mayank

unread,
Jul 16, 2019, 12:45:49 AM7/16/19
to Eventbrite Developers
Summarize Problem:

How to upload and retrieve image for event created
The api for image upload is not clear. It says the post format should be json but how can image be uploaded in json form.
Please help?

What have you already tried?


Describe the expected results:

Houston Krohman

unread,
Jul 29, 2019, 4:40:04 PM7/29/19
to Eventbrite Developers
Hi Mayank,

Here is a detailed guide to uploading images via API: https://www.eventbrite.com/platform/docs/image-upload

Houston Krohman

unread,
Jul 29, 2019, 5:20:43 PM7/29/19
to Eventbrite Developers
To retrieve an image:

1. Use our /events/ endpoint with the image expansion to pull the event data: https://{{eb_api_root}}/events/{{eb_event_id}}?expand=image

2. Extract the URL for the original image from the response: 

    "logo": {
        "crop_mask": {
            "top_left": {
                "x": 0,
                "y": 0
            },
            "width": 2160,
            "height": 1080
        },
        "original": {
            "url": "https://img-dev.evbuc.com/https%3A%2F%2Fcdn.evbuc.com%2Fimages%2F61821403%2F1331067705%2F1%2Foriginal.jpg?auto=compress&s=016a6304c80e9cc61835f93c2a48f15c",
            "width": 960,
            "height": 650
        },
        "id": "61821403",
        "url": "https://img-dev.evbuc.com/https%3A%2F%2Fcdn.evbuc.com%2Fimages%2F61821403%2F1331067705%2F1%2Foriginal.jpg?h=200&w=450&auto=compress&rect=0%2C0%2C2160%2C1080&s=633cfa682f1feddef4d65cf2480a0818",
        "aspect_ratio": "2",
        "edge_color": "#c6cdd2",
        "edge_color_set": true
    }
}
Reply all
Reply to author
Forward
0 new messages