import requests

class LineNotify:
    def __init__(self,):
        pass
    
    def lineNotifyMessage(self, token, msg):
        headers = {
        "Authorization": "Bearer " + token, 
        "Content-Type" : "application/x-www-form-urlencoded"
        }        
        payload = {'message': msg}

        r = requests.post("https://notify-api.line.me/api/notify", headers = headers, params = payload)
        return r.status_code

    def send_msg(self, msg, token):
    # 修改為你要傳送的訊息內容
        message = msg
        self.lineNotifyMessage(token, message)
8ca12385022d8424e4891eef8b20cc8e4ddfa1d5
<mask token>


class LineNotify:
    <mask token>
    <mask token>
    <mask token>

<mask token>


class LineNotify:
    <mask token>

    def lineNotifyMessage(self, token, msg):
        headers = {'Authorization': 'Bearer ' + token, 'Content-Type':
            'application/x-www-form-urlencoded'}
        payload = {'message': msg}
        r = requests.post('https://notify-api.line.me/api/notify', headers=
            headers, params=payload)
        return r.status_code

    def send_msg(self, msg, token):
        message = msg
        self.lineNotifyMessage(token, message)

<mask token>


class LineNotify:

    def __init__(self):
        pass

    def lineNotifyMessage(self, token, msg):
        headers = {'Authorization': 'Bearer ' + token, 'Content-Type':
            'application/x-www-form-urlencoded'}
        payload = {'message': msg}
        r = requests.post('https://notify-api.line.me/api/notify', headers=
            headers, params=payload)
        return r.status_code

    def send_msg(self, msg, token):
        message = msg
        self.lineNotifyMessage(token, message)

import requests


class LineNotify:

    def __init__(self):
        pass

    def lineNotifyMessage(self, token, msg):
        headers = {'Authorization': 'Bearer ' + token, 'Content-Type':
            'application/x-www-form-urlencoded'}
        payload = {'message': msg}
        r = requests.post('https://notify-api.line.me/api/notify', headers=
            headers, params=payload)
        return r.status_code

    def send_msg(self, msg, token):
        message = msg
        self.lineNotifyMessage(token, message)

import requests

class LineNotify:
    def __init__(self,):
        pass
    
    def lineNotifyMessage(self, token, msg):
        headers = {
        "Authorization": "Bearer " + token, 
        "Content-Type" : "application/x-www-form-urlencoded"
        }        
        payload = {'message': msg}

        r = requests.post("https://notify-api.line.me/api/notify", headers = headers, params = payload)
        return r.status_code

    def send_msg(self, msg, token):
    # 修改為你要傳送的訊息內容
        message = msg
        self.lineNotifyMessage(token, message)