updates
This commit is contained in:
@@ -4,13 +4,15 @@ include 'session_read.php';
|
||||
include('wrenchboard_class.php');
|
||||
$wrenchboard = new wrenchboard_class();
|
||||
|
||||
$famList=['e1ed7857-5dd0-4b78-b640-310bb224fd95','a24f1193-7885-4c26-afac-3e5ad744ef40'];
|
||||
|
||||
$data = array(
|
||||
"member_id" => $member_id ,
|
||||
"sessionid" => $session_id ,
|
||||
"uid" => $uid,
|
||||
"job_id" => '98',
|
||||
"job_uid" => '473d3239-ecd7-4eb5-859c-78261720cb8e',
|
||||
"family_uid" => 'a24f1193-7885-4c26-afac-3e5ad744ef40',
|
||||
"family_uid" => $famList[rand(0,1)],
|
||||
"job_description" => 'Nitetronic Z6 Anti Snoring Pillow, Best Snore Stopper Device, Clinically Proven Snoring Solution for Snorers, Smart Stop Snoring Technology Suitable for All Sleepers',
|
||||
'action'=>WRENCHBOARD_JOB_OFFER_SYSTEM,
|
||||
'assign_mode' => ASSIGN_MODE_FAMILY,
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
include_once('def.php');
|
||||
include 'session_read.php';
|
||||
include('wrenchboard_class.php');
|
||||
$wrenchboard = new wrenchboard_class();
|
||||
|
||||
$data = array(
|
||||
"member_id" => $member_id ,
|
||||
"sessionid" => $session_id ,
|
||||
"uid" => $uid,
|
||||
"job_id" => '98',
|
||||
"job_uid" => '473d3239-ecd7-4eb5-859c-78261720cb8e',
|
||||
"email" => 'ses66181+3@gmail.com',
|
||||
"job_description" => 'Nitetronic Z6 Anti Snoring Pillow, Best Snore Stopper Device, Clinically Proven Snoring Solution for Snorers, Smart Stop Snoring Technology Suitable for All Sleepers',
|
||||
'action'=>WRENCHBOARD_JOB_OFFER_SYSTEM,
|
||||
'assign_mode' => ASSIGN_MODE_EMAIL,
|
||||
|
||||
);
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'assigntask');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
|
||||
<?php
|
||||
include_once('def.php');
|
||||
include 'session_read.php';
|
||||
include('wrenchboard_class.php');
|
||||
$wrenchboard = new wrenchboard_class();
|
||||
|
||||
$data = array(
|
||||
"member_id" => $member_id ,
|
||||
"sessionid" => $session_id ,
|
||||
"uid" => $uid,
|
||||
"job_id" => '98',
|
||||
"job_uid" => '473d3239-ecd7-4eb5-859c-78261720cb8e',
|
||||
'duration' => 10,
|
||||
"job_description" => 'Nitetronic Z6 Anti Snoring Pillow, Best Snore Stopper Device, Clinically Proven Snoring Solution for Snorers, Smart Stop Snoring Technology Suitable for All Sleepers',
|
||||
'action'=>WRENCHBOARD_JOB_OFFER_SYSTEM,
|
||||
'assign_mode' => ASSIGN_MODE_INDIVIDUAL,
|
||||
|
||||
);
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'assigntask');
|
||||
|
||||
?>
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
//require_once 'config.php';
|
||||
$tArr =[
|
||||
['resources','Resources Dev','',''],
|
||||
|
||||
['login','This is the username password login call','https://docs.google.com/document/d/16wQi3vK2sEPexIU-MVLL_tbqiLn0brUfErdKMO26D9A/edit',''],
|
||||
['login-google','This is the username password login call','https://docs.google.com/document/d/16wQi3vK2sEPexIU-MVLL_tbqiLn0brUfErdKMO26D9A/edit',''],
|
||||
['signup','This is the sign up endpoint for manual account creation , we will have modified version for OAuth latter','',''],
|
||||
@@ -21,7 +23,9 @@ $tArr =[
|
||||
['sendreferral','Send Refferer','',''],
|
||||
['refferhx','Refferal Hx','',''],
|
||||
['getpendingjobs','Get Users Pending Jobs*** NOT SURE','',''],
|
||||
['offerslist','VALID: **** Jobs Sent to a User - These Jobs expires in about 24 hours','',''],
|
||||
['offerslist','VALID: **** Jobs Sent to a User - These Jobs expires in about 24 hours','','style="background-color:#F3FA98;"'],
|
||||
['offersresponse-accept','Accept to start an offer','','style="background-color:#F3FA98;"'],
|
||||
['offersresponse-reject','Reject to start an offer','','style="background-color:#F3FA98;"'],
|
||||
['startresetpasword', 'Reset Password Process','',''],
|
||||
['stepresetpass-final','Final; Step Reset pass','',''],
|
||||
['accounttypes', 'Used for account typed when adding a bank account','',''],
|
||||
@@ -58,14 +62,17 @@ $tArr =[
|
||||
['familyupdate', 'Update Family Account','','style="background-color:aliceblue" '],
|
||||
['familymanage', 'Manage A Family Account','','style="background-color:aliceblue" '],
|
||||
['familylogin', 'LoginA Family Account','','style="background-color:aliceblue" '],
|
||||
['familytasks', 'All or Family Member Tasks','','style="background-color:aliceblue" '],
|
||||
|
||||
|
||||
['assigntask', 'Assign a task to a user. Note different call method','','style="background-color:#E4EBD2" '],
|
||||
['assigntask-family', 'Assign a task to a user FAMILY TYPE.','','style="background-color:#E4EBD2" '],
|
||||
['assigntask', 'Assign a task to a user. Note different call method','','style="background-color:#E4EBD2" '],
|
||||
['assigntask', 'Assign a task to a user. Note different call method','','style="background-color:#E4EBD2" '],
|
||||
['assigntask-individual', 'Assign a task to a user INDIVIDUAL TYPE.','','style="background-color:#E4EBD2" '],
|
||||
['assigntask-public', 'Assign a task to a user PUBLIC TYPE.','','style="background-color:#E4EBD2" '],
|
||||
['assigntask', 'Assign a task to a user. Note different call method','','style="background-color:#E4EBD2" '],
|
||||
|
||||
|
||||
['marketmessage', 'Send message from market task ','','style="background-color:#edcae3" '],
|
||||
['marketinterest', 'Send interest from market task ','','style="background-color:#edcae3" '],
|
||||
];
|
||||
|
||||
//
|
||||
@@ -201,6 +208,9 @@ define('WRENCHBOARD_ACCOUNT_COUNTRY_BANKS', 11183);
|
||||
|
||||
define('WRENCHBOARD_ACCOUNT_HOMEBANNERS', 11200);
|
||||
|
||||
define('WRENCHBOARD_PICTURE_PROFILE', 11300);
|
||||
define('WRENCHBOARD_PICTURE_FAMMEMBER',11305);
|
||||
|
||||
|
||||
define('WRENCHBOARD_ACCOUNT_END', 11999);
|
||||
//**************************************************************
|
||||
@@ -257,6 +267,8 @@ define('WRENCHBOARD_CONTRACT_STATUS', 14015);
|
||||
|
||||
|
||||
define('WRENCHBOARD_MOBILE_OFFERSLIST', 15010);
|
||||
define('WRENCHBOARD_MOBILE_OFFERSRESP', 15012);
|
||||
|
||||
define('WRENCHBOARD_MOBILE_ACTIVEJOB', 15020);
|
||||
define('WRENCHBOARD_MOBILE_LOADPROFILE', 15030);
|
||||
define('WRENCHBOARD_MOBILE_UPDATEPROFILE',15031);
|
||||
@@ -344,5 +356,8 @@ define('PAY_MODE_BONUS', 9);
|
||||
define('APPROVED_BALANCE', 5);
|
||||
define('DISAPROVE_BALANCE', 3);
|
||||
|
||||
|
||||
// define('OFFER_ACCEPT',100);
|
||||
// define('OFFER_REJECT',333);
|
||||
// define('OFFER_CANCEL',222);
|
||||
// define('OFFER_EXPIRE',444);
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
include_once('def.php');
|
||||
include 'session_read.php';
|
||||
include('wrenchboard_class.php');
|
||||
$wrenchboard = new wrenchboard_class();
|
||||
|
||||
$data = array(
|
||||
"member_id" => $member_id ,
|
||||
"sessionid" => $session_id ,
|
||||
"uid" => $uid,
|
||||
"family_uid" => "e1ed7857-5dd0-4b78-b640-310bb224fd95",
|
||||
"limit" => 30,
|
||||
"offset" => 0,
|
||||
'action'=>WRENCHBOARD_JOB_ACTIVE
|
||||
);
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'jobmanageractive');
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
include_once('def.php');
|
||||
include 'session_read.php';
|
||||
include('wrenchboard_class.php');
|
||||
$wrenchboard = new wrenchboard_class();
|
||||
|
||||
$data = array(
|
||||
"member_id" => $member_id ,
|
||||
"sessionid" => $session_id ,
|
||||
"uid" => $uid,
|
||||
"msg_type" => "JOB",
|
||||
"offer_code" => '218B4BWB83',
|
||||
'action'=>WRENCHBOARD_JOB_SEND_INTEREST
|
||||
);
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'marketinterest');
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
include_once('def.php');
|
||||
include 'session_read.php';
|
||||
include('wrenchboard_class.php');
|
||||
$wrenchboard = new wrenchboard_class();
|
||||
|
||||
$data = array(
|
||||
"member_id" => $member_id ,
|
||||
"sessionid" => $session_id ,
|
||||
"uid" => $uid,
|
||||
"msg_type" => "JOB",
|
||||
"yourmessage" => "This is the message on the page ".rand(100,999),
|
||||
"offer_code" => '218B4BWB83',
|
||||
'action'=>WRENCHBOARD_JOB_SEND_QUESTION
|
||||
);
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'marketmessage');
|
||||
|
||||
?>
|
||||
@@ -3,7 +3,7 @@ include_once('def.php');
|
||||
include 'session_read.php';
|
||||
include('wrenchboard_class.php');
|
||||
$wrenchboard = new wrenchboard_class();
|
||||
$member_id =2;
|
||||
$member_id =188;
|
||||
$data = array(
|
||||
"member_id" => $member_id ,
|
||||
"sessionid" => $session_id ,
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
include_once('def.php');
|
||||
include 'session_read.php';
|
||||
include('wrenchboard_class.php');
|
||||
$wrenchboard = new wrenchboard_class();
|
||||
|
||||
$data = array(
|
||||
"member_id" => $member_id ,
|
||||
"sessionid" => $session_id ,
|
||||
"uid" => $uid,
|
||||
"offer_result" => OFFER_ACCEPT,
|
||||
'offer_code' => 'W047P6BRRQ',
|
||||
'contract' => 'W047P6BRRQ',
|
||||
'action'=> WRENCHBOARD_MOBILE_OFFERSRESP
|
||||
);
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'offersresponse');
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
include_once('def.php');
|
||||
include 'session_read.php';
|
||||
include('wrenchboard_class.php');
|
||||
$wrenchboard = new wrenchboard_class();
|
||||
|
||||
$data = array(
|
||||
"member_id" => $member_id ,
|
||||
"sessionid" => $session_id ,
|
||||
"uid" => $uid,
|
||||
"offer_result" => OFFER_REJECT,
|
||||
'offer_code' => 'W047P6BRRQ',
|
||||
'contract' => 'W047P6BRRQ',
|
||||
'action'=> WRENCHBOARD_MOBILE_OFFERSRESP
|
||||
);
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'offersresponse');
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,19 @@
|
||||
|
||||
<?php
|
||||
include_once('def.php');
|
||||
include('wrenchboard_class.php');
|
||||
$wrenchboard = new wrenchboard_class();
|
||||
|
||||
|
||||
|
||||
$data['sessionid'] = rand(10000,99999)."A".rand(10000,99999); // dummy for a start
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'resources');
|
||||
|
||||
|
||||
echo "=========================================================.....======================================";
|
||||
var_dump($out);
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
include_once('def.php');
|
||||
include 'session_read.php';
|
||||
include('wrenchboard_class.php');
|
||||
$wrenchboard = new wrenchboard_class();
|
||||
|
||||
if(isset($_FILES['image'])){
|
||||
$errors= array();
|
||||
$file_name = $_FILES['image']['name'];
|
||||
$file_size =$_FILES['image']['size'];
|
||||
$file_tmp =$_FILES['image']['tmp_name'];
|
||||
$file_type=$_FILES['image']['type'];
|
||||
$file_ext=strtolower(end(explode('.',$_FILES['image']['name'])));
|
||||
|
||||
$extensions= array("jpeg","jpg","png","bmp","svg");
|
||||
|
||||
if(in_array($file_ext,$extensions)=== false){
|
||||
$errors[]="extension not allowed, please choose a JPEG or PNG file.";
|
||||
}
|
||||
|
||||
if($file_size > 2097152){
|
||||
$errors[]='File size must be excately 2 MB';
|
||||
}
|
||||
|
||||
if(empty($errors)==true){
|
||||
|
||||
$image_source = file_get_contents($file_tmp);
|
||||
$file_stream = base64_encode($image_source);
|
||||
|
||||
$data = array(
|
||||
"member_id" => $member_id ,
|
||||
"sessionid" => $session_id ,
|
||||
"uid" => $uid,
|
||||
"file_name" => $file_name,
|
||||
"file_size" => $file_size,
|
||||
"file_type" => $file_type,
|
||||
"file_data" => $file_stream,
|
||||
"msg_type" => 'FILE',
|
||||
"contract" => '49BWBRW738',
|
||||
'action'=>WRENCHBOARD_CONTRACT_MESSAGE
|
||||
);
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'uploads');
|
||||
|
||||
// "file_props" => $_FILES,
|
||||
|
||||
var_dump( $data );
|
||||
var_dump( $out );
|
||||
|
||||
move_uploaded_file($file_tmp,"images_folder/".$file_name);
|
||||
echo "Success";
|
||||
}else{
|
||||
print_r($errors);
|
||||
}
|
||||
}
|
||||
|
||||
$tt_d = date('hisjmy');
|
||||
echo highlight_string(file_get_contents(__FILE__));
|
||||
|
||||
?>
|
||||
<html>
|
||||
<body>
|
||||
|
||||
<form action="" method="POST" enctype="multipart/form-data">
|
||||
<input type="file" name="image" />
|
||||
<input type="submit"/>
|
||||
</form>
|
||||
<?=$tt_d?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -6,8 +6,8 @@ class wrenchboard_class{
|
||||
// public $REACT_APP_AUX_ENDPOINT = "https://apigate.lotus.g1.wrenchboard.com/svs/user";
|
||||
// public $REACT_APP_USERS_ENDPOINT = "https://apigate.lotus.g1.wrenchboard.com/svs/user";
|
||||
|
||||
// public $REACT_APP_AUX_ENDPOINT = "http://10.204.5.100:9083/en/wrench/api/v1"; //"https://apigate.lotus.g1.wrenchboard.com/svs/user";
|
||||
// public $REACT_APP_USERS_ENDPOINT = "http://10.204.5.100:9083/en/wrench/api/v1"; // "https://apigate.lotus.g1.wre
|
||||
// public $REACT_APP_AUX_ENDPOINT = "http://10.204.5.100:9083/en/wrench/api/v1"; //"https://apigate.lotus.g1.wrenchboard.com/svs/user";
|
||||
// public $REACT_APP_USERS_ENDPOINT = "http://10.204.5.100:9083/en/wrench/api/v1"; // "https://apigate.lotus.g1.wre
|
||||
|
||||
public $REACT_APP_AUX_ENDPOINT = "http://10.204.5.100:9083/svs/user";
|
||||
public $REACT_APP_USERS_ENDPOINT = "http://10.204.5.100:9083/svs/user"; // "https://apigate.lotus.g1.wre
|
||||
|
||||
Reference in New Issue
Block a user