67 lines
2.1 KiB
PHP
67 lines
2.1 KiB
PHP
<?php
|
|
|
|
namespace App\Controllers;
|
|
|
|
class AirFlow extends BaseController
|
|
{
|
|
|
|
public function flowNewAccount(){
|
|
|
|
$raw_json = file_get_contents('php://input');
|
|
$in = json_decode($raw_json, true);
|
|
$out =[];
|
|
log_message('critical', "AirFlow::flowNewAccount ********* ALL ".serialize($in) );
|
|
return []; //json_encode( $final_out );
|
|
}
|
|
|
|
public function flowOfferPending(){
|
|
|
|
$raw_json = file_get_contents('php://input');
|
|
$in = json_decode($raw_json, true);
|
|
$out =[];
|
|
log_message('critical', "AirFlow::flowOfferPending ********* ALL ".serialize($in) );
|
|
return []; //json_encode( $final_out );
|
|
}
|
|
|
|
public function flowDueReminder(){
|
|
|
|
$raw_json = file_get_contents('php://input');
|
|
$in = json_decode($raw_json, true);
|
|
$out =[];
|
|
log_message('critical', "AirFlow::flowDueReminder ********* ALL ".serialize($in) );
|
|
return []; //json_encode( $final_out );
|
|
}
|
|
|
|
public function flowApproveReminder(){
|
|
|
|
$raw_json = file_get_contents('php://input');
|
|
$in = json_decode($raw_json, true);
|
|
$out =[];
|
|
log_message('critical', "AirFlow::flowApproveReminder ********* ALL ".serialize($in) );
|
|
return []; //json_encode( $final_out );
|
|
}
|
|
|
|
public function flowSignupReport(){
|
|
|
|
$raw_json = file_get_contents('php://input');
|
|
$in = json_decode($raw_json, true);
|
|
$out =[];
|
|
log_message('critical', "AirFlow::flowSignupReport ********* ALL ".serialize($in) );
|
|
return []; //json_encode( $final_out );
|
|
}
|
|
|
|
public function flowRefreshBlog(){
|
|
$raw_json = file_get_contents('php://input');
|
|
$in = json_decode($raw_json, true);
|
|
$out =[];
|
|
$endpoint = "WRENCH_BLOG_DATA";
|
|
$res1 = $this->getCache($endpoint);
|
|
if (count($res1)==0){
|
|
$rawData = $this->apiData(0);
|
|
$res1= $rawData['payload']; //[0]['payload'];
|
|
$this->saveCache($endpoint,$res1);
|
|
}
|
|
log_message('critical', "AirFlow::flowRefreshBlog ********* ALL ".serialize($in) );
|
|
return []; //json_encode( $final_out );
|
|
}
|
|
} |