Exemplo n.º 1
0
def send2me(pending_info, action_info):
	try:
		user_info, acc_info = getInfo(pending_info['action_id'], 'app_fetionaccount')

		send2self(acc_info['username'], acc_info['password'], pending_info['content'].encode('utf-8'))
		return True
	except:
		print_exc()
		return False
Exemplo n.º 2
0
import sys,os

APP_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(APP_PATH);

from PyWapFetion import Fetion, send2self, send

to = "15821121753"
send2self("15821121753", "xxxx", "LiXiu, Ni kan dao le ma ?");
print "Sent Message To %s" %(to)
Exemplo n.º 3
0
# encoding: utf-8
from __future__ import with_statement
from PyWapFetion import Fetion, send2self, send
send2self('18896723662','woai1234woai',"提示您")
Exemplo n.º 4
0
# -*- coding: utf-8 -*-
"""
Created on Wed Mar  1 16:33:36 2017

@author: AB053658
"""
from PyWapFetion import Fetion, send2self, send

#send('18810543929','wangyanwu2015','15010212095','这是一条测试短信')
send2self('18810543929', 'wangyanwu2015', '测试')
Exemplo n.º 5
0
# coding=utf-8

from __future__ import with_statement
from PyWapFetion import Fetion, send2self, send
# 仅作参考,详细了解请参考源码

# 快速发送:
send2self('手机号', '密码', '信息')
send('手机号', '密码', '接收方手机号', '信息')

#----------------------------------------------------------------------
myfetion = Fetion('手机号', '密码')

myfetion.changestatus('0')  # 改变在线状态

myfetion.send2self('发给自己的东西')
myfetion.findid('输入手机号,返回飞信ID')
myfetion.sendBYid('飞信ID', '消息')
myfetion.send('手机号', '消息', sm=True)  # 发送飞信信息
# 通过设定sm=True强制发送短信(sm=ShortMessage)
myfetion.send('昵称', '消息')  # 你也可以这么干
myfetion.addfriend('手机号', '你的昵称(5字以内)')
myfetion.send(['手机号1', '手机号2', '这就是传说中的群发'], '消息')
# 成功返回True,失败返回False

myfetion.send2self('这个是发给自己的定时短信', time='201111201120')
'''发送定时短信。格式:年月日小时分钟
如:2011年11月20日11时14分:201111201144
    2012年11月11日11时11分:201211111111
注意:时间允许范围:当前时刻向后10分钟-向后1年
如:当前时间:2011年11月20日 11:17
Exemplo n.º 6
0
from PyWapFetion import Fetion, send2self, send

# send('15957120592', 'chenyang','15957120592', 'Test')
send2self("15957120592",'757013','Testmyself');
Exemplo n.º 7
0
  # coding=utf-8
from __future__ import with_statement
from PyWapFetion import Fetion, send2self, send
#仅作参考,详细了解请参考源码

#快速发送:
send2self('手机号',  '密码', '信息')
send('手机号', '密码', '接收方手机号', '信息')

#----------------------------------------------------------------------
myfetion = Fetion('手机号', '密码')

myfetion = Fetion('手机号', '密码')

myfetion.changestatus('0')  # 改变在线状态

myfetion.send2self('发给自己的东西')
myfetion.findid('输入手机号,返回飞信ID')
myfetion.sendBYid('飞信ID', '消息')
myfetion.send('手机号', '消息', sm=True)  # 发送飞信信息
#通过设定sm=True强制发送短信(sm=ShortMessage)
myfetion.send('昵称', '消息')  # 你也可以这么干
myfetion.addfriend('手机号', '你的昵称(5字以内)')
myfetion.send(['手机号1', '手机号2', '这就是传说中的群发'], '消息')
  # 成功返回True,失败返回False

myfetion.send2self('这个是发给自己的定时短信', time='201111201120')
'''发送定时短信。格式:年月日小时分钟
如:2011年11月20日11时14分:201111201144
    2012年11月11日11时11分:201211111111
注意:时间允许范围:当前时刻向后10分钟-向后1年
Exemplo n.º 8
0
from PyWapFetion import Fetion, send2self, send

# send('15957120592', 'chenyang','15957120592', 'Test')
send2self("15957120592", '757013', 'Testmyself')
Exemplo n.º 9
0
#!/usr/bin/python
#coding:utf-8
from PyWapFetion import Fetion, send2self, send
# 仅作参考,详细了解请参考源码

# 快速发送:
send2self('18896723662',  'woai1234woai', '信息')
Exemplo n.º 10
0
#!/usr/bin/python  

from PyWapFetion import Fetion, send2self, send
send2self('phonenumber','passwd',"WHV_is_available")