Skip to content

Commit 55bc69d

Browse files
committed
upload photo example
1 parent 46c36a9 commit 55bc69d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

examples/upload_photo.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from InstagramAPI import InstagramAPI
2+
user,pwd = 'user', 'password'
3+
4+
InstagramAPI = InstagramAPI(user,pwd)
5+
InstagramAPI.login() # login
6+
7+
photo_path ='/path/to/photo.jpg'
8+
caption = "Sample photo"
9+
InstagramAPI.uploadPhoto(photo_path, caption = caption)

0 commit comments

Comments
 (0)