import requests


def lineNotifyMessage(token, msg):
    headers = {
        "Authorization": "Bearer " + token,  # 權杖，Bearer 的空格不要刪掉呦
        "Content-Type": "application/x-www-form-urlencoded"
    }

    payload = {'message': msg}

    # Post 封包出去給 Line Notify

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


def send(token, msg):
    result = lineNotifyMessage(token, msg)
    print(result)


if __name__ == '__main__':
    send(token, 'meow')

e37b36ef29e5bc0c55059ce89f57d3da7b9d5632
<mask token>

<mask token>


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


def send(token, msg):
    result = lineNotifyMessage(token, msg)
    print(result)


<mask token>

<mask token>


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


def send(token, msg):
    result = lineNotifyMessage(token, msg)
    print(result)


if __name__ == '__main__':
    send(token, 'meow')

import requests


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


def send(token, msg):
    result = lineNotifyMessage(token, msg)
    print(result)


if __name__ == '__main__':
    send(token, 'meow')

import requests


def lineNotifyMessage(token, msg):
    headers = {
        "Authorization": "Bearer " + token,  # 權杖，Bearer 的空格不要刪掉呦
        "Content-Type": "application/x-www-form-urlencoded"
    }

    payload = {'message': msg}

    # Post 封包出去給 Line Notify

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


def send(token, msg):
    result = lineNotifyMessage(token, msg)
    print(result)


if __name__ == '__main__':
    send(token, 'meow')
