diff --git a/public/def.php b/public/def.php index 8c97f55..978269c 100644 --- a/public/def.php +++ b/public/def.php @@ -137,6 +137,8 @@ define('WRENCHBOARD_GROUP_END', 12999); //************************************************************** define('WRENCHBOARD_CONTRACT_MESSAGE', 14010); +define('WRENCHBOARD_CONTRACT_MSGLIST', 14011); + define('WRENCHBOARD_CONTRACT_STATUS', 14015); diff --git a/public/index.php b/public/index.php index 35cf062..861d6cb 100644 --- a/public/index.php +++ b/public/index.php @@ -29,7 +29,7 @@ echo ""; foreach($tArr as $rr){ $i++; $urlS = $dm.$rr[0].".php"; - echo ""; + echo ""; } echo "
$i".$urlS ."".$rr[1]."
$i".$urlS ."".$rr[1]."
"; diff --git a/public/wrenchboard/activejoblist.php b/public/wrenchboard/activejoblist.php new file mode 100644 index 0000000..900656c --- /dev/null +++ b/public/wrenchboard/activejoblist.php @@ -0,0 +1,21 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "limit" => 20, + "page" => 1, + 'action'=>WRENCHBOARD_MOBILE_ACTIVEJOB +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'activejoblist'); + +?> + + diff --git a/public/wrenchboard/activejobmsglist.php b/public/wrenchboard/activejobmsglist.php new file mode 100644 index 0000000..0af8564 --- /dev/null +++ b/public/wrenchboard/activejobmsglist.php @@ -0,0 +1,20 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "limit" => 30, + 'contract' => '49BWBRW738', + "offset" => 0, + 'action'=> WRENCHBOARD_CONTRACT_MSGLIST +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'activejobmsglist'); + +?> diff --git a/public/wrenchboard/assigntask-family.php b/public/wrenchboard/assigntask-family.php new file mode 100644 index 0000000..eb69ff4 --- /dev/null +++ b/public/wrenchboard/assigntask-family.php @@ -0,0 +1,25 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "job_id" => '98', + "job_uid" => '473d3239-ecd7-4eb5-859c-78261720cb8e', + "family_uid" => 'a24f1193-7885-4c26-afac-3e5ad744ef40', + "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, + +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'assigntask'); + +?> + + diff --git a/public/wrenchboard/assigntask.php b/public/wrenchboard/assigntask.php new file mode 100644 index 0000000..e69de29 diff --git a/public/wrenchboard/def.php b/public/wrenchboard/def.php index 454f902..1786ddd 100644 --- a/public/wrenchboard/def.php +++ b/public/wrenchboard/def.php @@ -1,36 +1,78 @@ $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "firstname" => "First".rand(0,1000), + "lastname" => "Last".rand(0,1000), + "age" => rand(10,16), + 'action'=>WRENCHBOARD_FAMILY_ADD +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'familyadd'); + +?> \ No newline at end of file diff --git a/public/wrenchboard/familylist.php b/public/wrenchboard/familylist.php new file mode 100644 index 0000000..c175c75 --- /dev/null +++ b/public/wrenchboard/familylist.php @@ -0,0 +1,19 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "limit" => 20, + "offset" => 1, + 'action'=>WRENCHBOARD_FAMILY_LIST +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'familylist'); + +?> \ No newline at end of file diff --git a/public/wrenchboard/familylogin.php b/public/wrenchboard/familylogin.php new file mode 100644 index 0000000..d167034 --- /dev/null +++ b/public/wrenchboard/familylogin.php @@ -0,0 +1,33 @@ +wrenchboard_api($data,$out); + + +echo "=========================================================.....======================================"; +var_dump($out); + +if ($out['internal_return'] == 100){ + echo 'Save the session for other use - you will need it'; + $myfile = fopen("../../writable/wrench_family_session.txt", "w") or die("Unable to open file!"); + fwrite($myfile, $out['session']); + fwrite($myfile, "\n"); + fwrite($myfile, $out['member_id']); + fwrite($myfile, "\n"); + fwrite($myfile, $out['uid']); + fclose($myfile); +} + +?> \ No newline at end of file diff --git a/public/wrenchboard/familymanage.php b/public/wrenchboard/familymanage.php new file mode 100644 index 0000000..0d3e1fb --- /dev/null +++ b/public/wrenchboard/familymanage.php @@ -0,0 +1,18 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "family_uid" => 'a24f1193-7885-4c26-afac-3e5ad744ef40', + 'action'=>WRENCHBOARD_FAMILY_MANAGE +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'familymanage'); + +?> diff --git a/public/wrenchboard/familyupdate.php b/public/wrenchboard/familyupdate.php new file mode 100644 index 0000000..b91358d --- /dev/null +++ b/public/wrenchboard/familyupdate.php @@ -0,0 +1,29 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "family_uid" => 'd04202a3-3d76-44da-be5b-c683998adc10', + "firstname" => "NewFirst".rand(0,100), + "lastname" => "NewLast".rand(0,100), + 'action'=> WRENCHBOARD_FAMILY_UPDATE +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'familyupdate'); + + +/* +array (size=4) + 'uid' => string 'd04202a3-3d76-44da-be5b-c683998adc10' (length=36) + 'firstname' => string 'First702' (length=8) + 'lastname' => string 'Last377' (length=7) + 'age' => string '12' (length=2) +1 => +*/ + ?> diff --git a/public/wrenchboard/getjobsdata.php b/public/wrenchboard/getjobsdata.php new file mode 100644 index 0000000..6f8dda5 --- /dev/null +++ b/public/wrenchboard/getjobsdata.php @@ -0,0 +1,24 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "limit" => 20, + "page" => 1, + 'action'=>WRENCHBOARD_ACCOUNT_JOBLIST +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'getjobsdata'); + +?> + + + + + diff --git a/public/wrenchboard/index.php b/public/wrenchboard/index.php index a3e159d..bbd3443 100644 --- a/public/wrenchboard/index.php +++ b/public/wrenchboard/index.php @@ -24,7 +24,7 @@ foreach($tArr as $rr){ $i++; $urlS = $dm.$rr[0].".php"; $docU = $dm.$rr[2]; - echo "$i".$urlS ."".$rr[1]." + echo "$i".$urlS ."".$rr[1]." ".$docU .""; } diff --git a/public/wrenchboard/jobmanageractive.php b/public/wrenchboard/jobmanageractive.php new file mode 100644 index 0000000..39e142f --- /dev/null +++ b/public/wrenchboard/jobmanageractive.php @@ -0,0 +1,19 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "limit" => 30, + "offset" => 0, + 'action'=>WRENCHBOARD_JOB_ACTIVE +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'jobmanageractive'); + +?> diff --git a/public/wrenchboard/jobmanageragree.php b/public/wrenchboard/jobmanageragree.php new file mode 100644 index 0000000..483ed66 --- /dev/null +++ b/public/wrenchboard/jobmanageragree.php @@ -0,0 +1,18 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + 'action'=>WRENCHBOARD_JOB_POSTAGREE +); + +$out = array(); + +$ret = $wrenchboard->wrenchboard_api($data,$out,'jobmanageragree'); + +?> diff --git a/public/wrenchboard/jobmanagercreatejob.php b/public/wrenchboard/jobmanagercreatejob.php new file mode 100644 index 0000000..5f2a8cf --- /dev/null +++ b/public/wrenchboard/jobmanagercreatejob.php @@ -0,0 +1,23 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "country" => 'NG', + "price" => rand(2,10)*1000, + "timeline_days" => rand(2,10), + "title" => "This is the job title " .rand(1,9000)." job title" , + "description" => "This is the job description " .rand(1,9000)." job description" , + "job_detail" => "This is the job detail " .rand(1,9000)." job detail" , + 'action'=>WRENCHBOARD_JOB_CREATEJOB +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'jobmanagercreatejob'); +//jobmanagerupdatejob +?> \ No newline at end of file diff --git a/public/wrenchboard/jobmanagerdeletejob.php b/public/wrenchboard/jobmanagerdeletejob.php new file mode 100644 index 0000000..1a7df71 --- /dev/null +++ b/public/wrenchboard/jobmanagerdeletejob.php @@ -0,0 +1,19 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "job_uid" => 'fa85e591-fcbf-4ad5-8142-3e58a91237d9', + "job_id" => 162, + 'action'=>WRENCHBOARD_JOB_DELETEJOB +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'jobmanagerdeletejob'); +//jobmanagerupdatejob +?> \ No newline at end of file diff --git a/public/wrenchboard/jobmanageroffers.php b/public/wrenchboard/jobmanageroffers.php new file mode 100644 index 0000000..c4a85b2 --- /dev/null +++ b/public/wrenchboard/jobmanageroffers.php @@ -0,0 +1,21 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "limit" => 30, + "offset" => 0, + 'action'=>WRENCHBOARD_JOB_OFFERS +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'jobmanageroffers'); + +?> + + diff --git a/public/wrenchboard/jobmanagerupdatejob.php b/public/wrenchboard/jobmanagerupdatejob.php new file mode 100644 index 0000000..48522cc --- /dev/null +++ b/public/wrenchboard/jobmanagerupdatejob.php @@ -0,0 +1,24 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "job_uid" => 'fa85e591-fcbf-4ad5-8142-3e58a91237d9', + "job_id" => 162, + "price" => rand(2,10)*1000, + "timeline_days" => rand(2,10), + "title" => "This is the job title " .rand(1,9000)." job title" , + "description" => "This is the job description " .rand(1,9000)." job description" , + "job_detail" => "This is the job detail " .rand(1,9000)." job detail" , + 'action'=>WRENCHBOARD_JOB_CREATEJOB +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'jobmanagerupdatejob'); +//jobmanagerupdatejob +?> \ No newline at end of file diff --git a/public/wrenchboard/login-google.php b/public/wrenchboard/login-google.php new file mode 100644 index 0000000..121602d --- /dev/null +++ b/public/wrenchboard/login-google.php @@ -0,0 +1,34 @@ +wrenchboard_api($data,$out,'authlogin'); + + +echo "=========================================================.....======================================"; +var_dump($out); + +if ($out['internal_return'] == 100){ + echo 'Save the session for other use - you will need it'; + $myfile = fopen("../../writable/wrench_googgle-session.txt", "w") or die("Unable to open file!"); + fwrite($myfile, $out['session']); + fwrite($myfile, "\n"); + fwrite($myfile, $out['member_id']); + fwrite($myfile, "\n"); + fwrite($myfile, $out['uid']); + fclose($myfile); +} + +?> \ No newline at end of file diff --git a/public/wrenchboard/pendingjobcancel.php b/public/wrenchboard/pendingjobcancel.php new file mode 100644 index 0000000..8536c00 --- /dev/null +++ b/public/wrenchboard/pendingjobcancel.php @@ -0,0 +1,19 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "job_uid" => 'f27ce041-6236-4184-a465-50a5bc7fd473', + "offer_code" =>'72WWW80WW2', + "reason" => 'any message', + 'action'=>WRENCHBOARD_JOB_CANCEL_OFFER +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'pendingjobcancel'); +?>hiefsoft \ No newline at end of file diff --git a/public/wrenchboard/pendingjobextend.php b/public/wrenchboard/pendingjobextend.php new file mode 100644 index 0000000..a8c650c --- /dev/null +++ b/public/wrenchboard/pendingjobextend.php @@ -0,0 +1,19 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "job_uid" => 'f27ce041-6236-4184-a465-50a5bc7fd473', + "offer_code" =>'72WWW80WW2', + "extend_days" => 7, + 'action'=>WRENCHBOARD_JOB_EXTEND_EXPIRE +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'pendingjobextend'); +?> \ No newline at end of file diff --git a/public/wrenchboard/pendingjobsendtome.php b/public/wrenchboard/pendingjobsendtome.php new file mode 100644 index 0000000..b367a6f --- /dev/null +++ b/public/wrenchboard/pendingjobsendtome.php @@ -0,0 +1,19 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "job_uid" => 'f27ce041-6236-4184-a465-50a5bc7fd473', + "offer_code" =>'72WWW80WW2', + "mode" => 200, + 'action'=>WRENCHBOARD_JOB_RESEND_MESSAGE +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'pendingjobsendtome'); +?> \ No newline at end of file diff --git a/public/wrenchboard/sendtaskmessage.php b/public/wrenchboard/sendtaskmessage.php new file mode 100644 index 0000000..538bf8e --- /dev/null +++ b/public/wrenchboard/sendtaskmessage.php @@ -0,0 +1,22 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "message" => 'Lorem Ipsum comes from a latin text written in 45BC by Roman statesman, lawyer, scholar, and philosopher, Marcus Tullius Cicero', + "msg_type" => 'TEXT', + "contract" => '49BWBRW738', + 'action'=>WRENCHBOARD_CONTRACT_MESSAGE +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'sendtaskmessage'); +//activejobmsgadd taskmessage +?> + + diff --git a/public/wrenchboard/starttopup.php b/public/wrenchboard/starttopup.php new file mode 100644 index 0000000..51b1b85 --- /dev/null +++ b/public/wrenchboard/starttopup.php @@ -0,0 +1,21 @@ + $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "amount" => 100*rand(100,2000), + "currency" => 'NGN', + 'action'=>WRENCHBOARD_ACCOUNT_PREPARE_TOPUP +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,"starttopup"); + +?> + + diff --git a/public/wrenchboard/stepresetpass-final.php b/public/wrenchboard/stepresetpass-final.php new file mode 100644 index 0000000..20b8e77 --- /dev/null +++ b/public/wrenchboard/stepresetpass-final.php @@ -0,0 +1,18 @@ + "DUMMY-CANNOT_BE_EMPTY" , + "reset_link" => '36dfec6e557768511ffc87bdc861fac4543ae5758f933f8a7c92a7a70960fa3f', + "newpass" => 'your-new-password', + "step" => 300, + 'action'=>WRENCHBOARD_COMPLETE_PASSWORDRESET +); + +$out = array(); +$ret = $wrenchboard->wrenchboard_api($data,$out,'stepresetpass'); + +?> diff --git a/public/wrenchboard/wrenchboard_class.php b/public/wrenchboard/wrenchboard_class.php index 04eb911..e286625 100644 --- a/public/wrenchboard/wrenchboard_class.php +++ b/public/wrenchboard/wrenchboard_class.php @@ -6,8 +6,15 @@ 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 + + + //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"; function __construct() { diff --git a/writable/wrench_family_session.txt b/writable/wrench_family_session.txt new file mode 100644 index 0000000..9706c40 --- /dev/null +++ b/writable/wrench_family_session.txt @@ -0,0 +1,3 @@ +168B2E069AE786C6094652A7CBE25F8C6FA1998B8F963F7CA18B50D09D556F3E +187 +b4f14eb5-b663-4f88-a7e3-2e2131a7543a \ No newline at end of file diff --git a/writable/wrench_session.txt b/writable/wrench_session.txt new file mode 100644 index 0000000..0e73b63 --- /dev/null +++ b/writable/wrench_session.txt @@ -0,0 +1,3 @@ +DFD8812B9A3ABE7FCF920B71A22AA3E93BB9F9C33AE22E90AAC47537367B2E2B +1 +3119b744-42ad-4834-bb83-b737588754ca \ No newline at end of file