Skip to content

If it is possible to upload posts with multiple photos ? #37

Closed Answered by diezo
daniilberkut asked this question in Q&A
Discussion options

You must be logged in to vote

hey @daniilberkut

i've added the feature to post multiple photos in one single post. here's the code:

from ensta import Host

host = Host(username, password)

upload1 = host.get_upload_id("1.jpeg")
upload2 = host.get_upload_id("2.jpeg")
upload3 = host.get_upload_id("3.jpeg")

host.upload_photos([upload1, upload2, upload3], caption="Summer vacation!")

are you satisfied with the implementation?

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@daniilberkut
Comment options

@diezo
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by diezo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants