zoukankan      html  css  js  c++  java
  • python实现发送信息到微信(调用捷易快信接口)

    import json
    import urllib.request # 需要安装 urllib 库
    #http://jy.erpit.cn/login
    data = {
    'secret': '用户中心可查到',
    'app_key': '分组的key',
    'template_id': 'lfN7zq4zAV0xnTYyftiBrS1bDj4ClnAD8rcPDwFwHfc',
    'url': '',
    'data': {
    'first': {
    'value': '尊贵VIP',
    },
    'keyword1': {
    'value': 'VIP一号',
    },
    'keyword2': {
    'value': '888888888888元',
    },
    'remark': {
    'value': '最土豪',
    },
    }
    }
    url = 'http://jy.erpit.cn/api/message/send'
    headers = {'content-type': 'application/json'}
    response = urllib.request.Request(url, json.dumps(data).encode('UTF-8'), headers)
    page = urllib.request.urlopen(response)
    html = page.read()
    result = json.loads(html)
    print(html)
  • 相关阅读:
    kvm
    docker及lvs负载
    zookeeper,及k8s基础概念
    zabbix-proxy及ELK
    gitlab及jenkins
    绘图 Matplotlib Numpy Pandas
    Elasticsearch
    Git命令小结
    win黑窗口命令
    Linux基础命令
  • 原文地址:https://www.cnblogs.com/xgzhen105/p/14343535.html
Copyright © 2011-2022 走看看