java實(shí)現(xiàn)給手機(jī)發(fā)短信 定義一個(gè)Java手機(jī)接口,打電話,接電話,發(fā)短信,接受短信的功能?
定義一個(gè)Java手機(jī)接口,打電話,接電話,發(fā)短信,接受短信的功能?Public interface calling{/**]*@param calledphoneno calling number*@
定義一個(gè)Java手機(jī)接口,打電話,接電話,發(fā)短信,接受短信的功能?
Public interface calling{
/*
*
]*@param calledphoneno calling number
*@param calledphoneno called number
*@return返回調(diào)用成功失敗ID
*/
Public int calling in(string callphoneno,string calledphoneno)
/*
]*
*@param calledphoneno called number
*@param calledphoneno calling number
*@Return Return to call success failure ID
*/
public int callout(string calledphoneno,string callphoneno)
/*
*@param calledphoneno receive SMS number
*@param callphoneno sendSMS number
*@param content SMS content
*@return to send SMS success id
*/
public int sendmsg(字符串calledphoneno,字符串callphoneno,字符串內(nèi)容)
/*
*
]*@param calledphoneno send SMS number
*@param calledphoneno receive SMS number
*@param Content
*@return receive SMS success identification
*備注:實(shí)際上,您不能使用此接口。要發(fā)送短信息,您需要將短信息保存到短信息發(fā)送表中,然后有一個(gè)進(jìn)程實(shí)時(shí)掃描數(shù)據(jù),然后發(fā)送
*/
public int recivemsg(string Callphoneno,string calledphoneno,字符串內(nèi)容)
}
通過HTTP請(qǐng)求提交參數(shù):用戶名和密碼接收短信號(hào)碼發(fā)送短信內(nèi)容前端表單提交數(shù)據(jù),后端接收參數(shù),調(diào)用發(fā)送短信功能發(fā)送短信。