success : true or false
member : array
data : array
{"success":true,"member":[{"member_id":"25"}],"data":[{"report_id":"22","bank_id":"1","account_id":"20","member_id":"25","bank_number":"","way":"Internet\/Mobile","type":"\u0e1d\u0e32\u0e01\u0e14\u0e49\u0e27\u0e22\u0e40\u0e0a\u0e47\u0e04\u0e18\u0e19\u0e32\u0e04\u0e32\u0e23\/\u0e42\u0e2d\u0e19 \u0e44\u0e21\u0e48\u0e21\u0e35\u0e2a\u0e21\u0e38\u0e14\u0e04\u0e39\u0e48\u0e1d\u0e32\u0e01","withdraw":"","deposit":"1.13","detail":"BBLA-MOBILE-CHANNEL","amount":"1.13","status":"2","caption":"","notify":"1","timestamp":"2021-03-13 19:05:14","current_time":"2021-03-13 12:05:34"},{"report_id":"21","bank_id":"1","account_id":"20","member_id":"25","bank_number":"","way":"Internet\/Mobile","type":"\u0e1d\u0e32\u0e01\u0e14\u0e49\u0e27\u0e22\u0e40\u0e0a\u0e47\u0e04\u0e18\u0e19\u0e32\u0e04\u0e32\u0e23\/\u0e42\u0e2d\u0e19 \u0e44\u0e21\u0e48\u0e21\u0e35\u0e2a\u0e21\u0e38\u0e14\u0e04\u0e39\u0e48\u0e1d\u0e32\u0e01","withdraw":"","deposit":"1.11","detail":"BBLA-MOBILE-CHANNEL","amount":"1.11","status":"1","caption":"","notify":"1","timestamp":"2021-03-13 18:49:36","current_time":"2021-03-13 11:50:08"}]}
var access_token = 'token here'; var limit = 10; var base_url = ''; $.ajax({ url: base_url+"/api/member/get", type: "POST", data: {'access_token':access_token,'limit':limit}, success: function (response) { console.log(response); }, error: function(jqXHR, textStatus, errorThrown) { console.log(errorThrown); } });
$server_url = 'api/member/get'; $post = [ 'access_token' => 'access_token', 'limit' => 'limit', ]; $ch = curl_init($server_url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); $result = curl_exec($ch); curl_close($ch); $json = json_decode($result); print_r($json);
access_token = allow access token
report_id : int = transaction id get from Method get
status : int = value 1 or 2 In progress or approve
var access_token = 'token here'; var report_id = 10; var status = 2; var base_url = ''; $.ajax({ url: base_url+"/api/member/set", type: "POST", data: {'access_token':access_token,'report_id':report_id,status:status}, success: function (response) { console.log(response); }, error: function(jqXHR, textStatus, errorThrown) { console.log(errorThrown); } });
$server_url = 'api/member/get'; $post = [ 'access_token' => 'access_token', 'report_id' => 'report_id', 'status' => 'status', ]; $ch = curl_init($server_url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); $result = curl_exec($ch); curl_close($ch); $json = json_decode($result); print_r($json);