question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request feature update_with_media more than one image

See original GitHub issue

I need to upload two images, like this:

tweet = api.update_with_media(['image1.png', 'image2.png'], status=msg)

Is it possible?

Thanks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
fitnrcommented, Apr 30, 2016

The update_with_media endpoint is deprecated by Twitter. To post multiple images, you should use media_upload. It will looks something like this:

images = ('image1.png', 'image2.png')
media_ids = [api.media_upload(i).media_id_string for i in images]
api.update_status(status=msg, media_ids=media_ids)

edited: typed update/update_status typo

2reactions
flyudvikcommented, Aug 6, 2017

You should include this snippet to examples.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Request – Select Multiple Images - WordPress.org
Meaning you want to download images from the same search and insert them into a gallery? Or do you see this as a...
Read more >
How to select multiple images at once in related media field
The selector for related media allows only one image to be selected at once, multiple images can be selected, but one by one....
Read more >
Ability to replace/update image files – Adobe XD Feedback
I need to be able to replace a picture from clipboard, like it is possible in PowerPoint. The drag and drop feature ......
Read more >
Multiple Images | Voters - Mentimeter - Canny
Would be great to be able to add images for ranking sliders. I can add images to the multiple choice question, but that...
Read more >
Social Monitoring Add Multi-Image Posts and Videos... - 338090
There are multiple requests for this thread: 1) The ability to post multiple images on Instagram via the Social Posts feature - This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found