发
This commit is contained in:
parent
6de563d30d
commit
7b89327dfc
@ -13,13 +13,24 @@ class Oauth2Controller extends ControllerBase{
|
||||
// http://127.0.0.1/tiffany/api/oauth2/wmqtest
|
||||
// http://weapp.wemediacn.net/d/tiffany/api/oauth2/wmqtest
|
||||
function wmqtestAction(){
|
||||
$appid = '0e355010-67b9-4aa6-a53f-c92c972094a7';
|
||||
|
||||
$url = "http://wxapp.wemediacn.com/smsoauth2_qa/api/oauth2/code";
|
||||
// echo $url;die;
|
||||
$post_arr = array();
|
||||
$post_arr['appid'] = "123213213213123213213";
|
||||
$post_arr['appid'] = $appid;
|
||||
$post_json = json_encode($post_arr);
|
||||
$result = $this->__http_post_request($url, $post_json, true);
|
||||
print_r($result); die;
|
||||
$item = json_decode($result,true);
|
||||
|
||||
$url = "http://wxapp.wemediacn.com/smsoauth2_qa/api/oauth2/accesstoken";
|
||||
$post_arr = array();
|
||||
$post_arr['appid'] = $appid;
|
||||
$post_arr['appsecrect'] = "b82015bd-8d4c-4df8-87a8-c25477a8976f";
|
||||
$post_arr['code'] = $item['data']['code'];
|
||||
$post_json = json_encode($post_arr);
|
||||
$result = $this->__http_post_request($url, $post_json, true);
|
||||
$item = json_decode($result,true);
|
||||
print_r($item); die;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -35,17 +35,27 @@ class SmsController extends ControllerBase{
|
||||
* http://weapp.wemediacn.net/d/tiffany/api/sms/test?qaz=wsx
|
||||
*/
|
||||
function testAction(){
|
||||
//$url = "http://wxapp.wemediacn.com/smsoauth2_qa/api/sms/send";
|
||||
$url = "http://wxapp.wemediacn.com/smsoauth2_qa/api/sms/send";
|
||||
//$url = "http://127.0.0.1/tiffany/api/sms/send?qaz=wsx";
|
||||
|
||||
|
||||
|
||||
|
||||
//$url = "http://wxapp.wemediacn.com/smsoauth2_qa/api/sms/authcode";
|
||||
//$url = "http://127.0.0.1/tiffany/api/sms/authcode?qaz=wsx";
|
||||
|
||||
|
||||
|
||||
|
||||
//$url = "http://wxapp.wemediacn.com/smsoauth2_qa/api/sms/query_reports";
|
||||
$url = "http://127.0.0.1/tiffany/api/sms/query_reports?qaz=wsx";
|
||||
// $url = "http://127.0.0.1/tiffany/api/sms/query_reports?qaz=wsx";
|
||||
|
||||
|
||||
|
||||
$post_arr = array();
|
||||
$post_arr['appid'] = "0e355010-67b9-4aa6-a53f-c92c972094a7";
|
||||
$post_arr['mobile'] = "13501882318";
|
||||
$post_arr['access_token'] = "9d21508a7531430c843cff8063dccb1c";
|
||||
$post_arr['access_token'] = "8dfd706ffcfce2c7067df73f8e122020";
|
||||
$post_arr['mobile'] = "18221936436";
|
||||
$post_arr['access_token'] = "c82fee53ecc8aaa37b3e1584a51448f1";
|
||||
$post_arr['content'] = "[$=yzm=$]、[$=params1=$]、[$=params2=$]、[$=params3=$]、[$=params4=$]、[$=params5=$]";
|
||||
$post_arr['format'] = "";
|
||||
$post_arr['len'] = -1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user