#!/usr/local/bin/python
import requests

url = 'https://notify-api.line.me/api/notify'
token = 'XXXXXXXXXXXXXXXXXXXX' # Line Notify Token
img = {'imageFile': open('picture.jpg','rb')}
data = {'message':'Test from python3'}
headers = {'Authorization':'Bearer ' + token}
session = requests.Session()
session_post = session.post(url, headers=headers, files=img, data =data)
print(session_post.text) 
