added more calls
This commit is contained in:
@@ -137,6 +137,8 @@ define('WRENCHBOARD_GROUP_END', 12999);
|
||||
//**************************************************************
|
||||
|
||||
define('WRENCHBOARD_CONTRACT_MESSAGE', 14010);
|
||||
define('WRENCHBOARD_CONTRACT_MSGLIST', 14011);
|
||||
|
||||
define('WRENCHBOARD_CONTRACT_STATUS', 14015);
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ echo "<table class='table table-striped'>";
|
||||
foreach($tArr as $rr){
|
||||
$i++;
|
||||
$urlS = $dm.$rr[0].".php";
|
||||
echo "<tr><td style='width: 20px'>$i</td><td style='width: 120px'><a href='".$urlS ."' target='BLANK'>".$urlS ."</a></td><td>".$rr[1]."</td></tr>";
|
||||
echo "<tr ><td style='width: 20px'>$i</td><td style='width: 120px'><a href='".$urlS ."' target='BLANK'>".$urlS ."</a></td><td>".$rr[1]."</td></tr>";
|
||||
}
|
||||
|
||||
echo "</table>";
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<?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,
|
||||
"limit" => 20,
|
||||
"page" => 1,
|
||||
'action'=>WRENCHBOARD_MOBILE_ACTIVEJOB
|
||||
);
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'activejoblist');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
@@ -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,
|
||||
"limit" => 30,
|
||||
'contract' => '49BWBRW738',
|
||||
"offset" => 0,
|
||||
'action'=> WRENCHBOARD_CONTRACT_MSGLIST
|
||||
);
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'activejobmsglist');
|
||||
|
||||
?>
|
||||
@@ -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',
|
||||
"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');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
+99
-28
@@ -1,36 +1,78 @@
|
||||
<?php
|
||||
//require_once 'config.php';
|
||||
$tArr =[
|
||||
['login','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',''],
|
||||
['profilepasschange','Reset Pass from Profile',''],
|
||||
['userscards','What are you for really *******',''],
|
||||
['wallet','This list the user wallets. Note the user can have multiple wallets of different currencies and behavior. We will start with the primary wallets.',''],
|
||||
['paymenthx','Payment Hx',''],
|
||||
['couponhx','Coupon Hx',''],
|
||||
['purchasehx','Purchase Hx',''],
|
||||
['activejoblist','What are you for really *******',''],
|
||||
['startjoblist', 'List Jobs in the market space',''],
|
||||
['signupcountry','List countries signup allowed from', ''],
|
||||
['countrybanks','Country Banks',''],
|
||||
['recipients','List all account recipients',''],
|
||||
['addrecipient','Add Recipient',''],
|
||||
['sendmoneyfee','Send money fee',''],
|
||||
['sendmoney', 'Send money',''],
|
||||
['updateprofile','Update users profile',''],
|
||||
['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',''],
|
||||
['startresetpasword', 'Reset Password Process',''],
|
||||
['accounttypes', 'Used for account typed when adding a bank account',''],
|
||||
['loadprofile','Load user profile',''],
|
||||
['verifysignuplink','VERIFY Signup link',''],
|
||||
['completesignuplink','Complete Signup Link',''],
|
||||
['homebanners','Home Banners + Recomendation Engine 1', ''],
|
||||
['jobmanagerlist', 'Job owner job list', '']
|
||||
['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','',''],
|
||||
['profilepasschange','Reset Pass from Profile','',''],
|
||||
['userscards','What are you for really *******','',''],
|
||||
['wallet','This list the user wallets. Note the user can have multiple wallets of different currencies and behavior. We will start with the primary wallets.','',''],
|
||||
['paymenthx','Payment Hx','',''],
|
||||
['couponhx','Coupon Hx','',''],
|
||||
['purchasehx','Purchase Hx','',''],
|
||||
['startjoblist', 'List Jobs in the market space','',''],
|
||||
['signupcountry','List countries signup allowed from','', ''],
|
||||
['countrybanks','Country Banks','',''],
|
||||
['recipients','List all account recipients','',''],
|
||||
['addrecipient','Add Recipient','',''],
|
||||
['sendmoneyfee','Send money fee','',''],
|
||||
['sendmoney', 'Send money','',''],
|
||||
['updateprofile','Update users profile','',''],
|
||||
['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','',''],
|
||||
['startresetpasword', 'Reset Password Process','',''],
|
||||
['stepresetpass-final','Final; Step Reset pass','',''],
|
||||
['accounttypes', 'Used for account typed when adding a bank account','',''],
|
||||
['loadprofile','Load user profile','',''],
|
||||
['verifysignuplink','VERIFY Signup link','',''],
|
||||
['completesignuplink','Complete Signup Link','',''],
|
||||
['homebanners','Home Banners + Recomendation Engine 1','', ''],
|
||||
['getjobsdata','?? confirm','',''],
|
||||
|
||||
['activejoblist','Job Beign Worked On USERS','','style="background-color:red" '],
|
||||
|
||||
['activejobmsglist','Listing message to active job','','style="background-color:#A9DDE2" '],
|
||||
['sendtaskmessage','activejobmsgadd - Adding message to active job','','style="background-color:#A9DDE2" '],
|
||||
['activejobmessage','Adding message to active job','','style="background-color:#A9DDE2" '],
|
||||
|
||||
['jobmanagerlist', 'Job owner job list', '','style="background-color:Orange" '],
|
||||
['jobmanageroffers', 'Job owner job open offers list', '','style="background-color:Orange" '],
|
||||
['jobmanageractive','Job Beign Worked On OWNER of Job','','style="background-color:red" '],
|
||||
|
||||
|
||||
['jobmanageragree', 'Job Agree','','style="background-color:Orange" '],
|
||||
['jobmanagerlist', 'Job owner job list', '','style="background-color:Orange" '],
|
||||
['jobmanagercreatejob', 'Create a new Job - general job mode', '','style="background-color:Orange"'],
|
||||
['jobmanagerupdatejob', 'Update a Job - general job mode','','style="background-color:Orange" '],
|
||||
['jobmanagerdeletejob', 'Delete a Job - general job mode','','style="background-color:Orange" '],
|
||||
|
||||
['pendingjobextend',' - Extend offers expiration','','style="background-color:#FFEBCD" '],
|
||||
['pendingjobsendtome',' - Re-Send Offer Message','','style="background-color:#FFEBCD" '],
|
||||
['pendingjobcancel',' - Cancel Pending Offer','','style="background-color:#FFEBCD" '],
|
||||
|
||||
['starttopup', 'Start naira top up','',''],
|
||||
['familylist', 'Get list of Family Accounts','','style="background-color:aliceblue" '],
|
||||
['familyadd', 'Add Family Account','','style="background-color:aliceblue" '],
|
||||
['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" '],
|
||||
|
||||
['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', 'Assign a task to a user. Note different call method','','style="background-color:#E4EBD2" '],
|
||||
|
||||
|
||||
];
|
||||
|
||||
//
|
||||
|
||||
define('LOGIN_GOOGLE', 990010);
|
||||
define('LOGIN_FACEBOOK', 990011);
|
||||
define('LOGIN_APPLE', 990012);
|
||||
|
||||
define('PHP_API_OK', 0);
|
||||
define('PHP_LOGIN_OK', 100);
|
||||
@@ -38,8 +80,17 @@ define('PHP_CREATED_OK', 10);
|
||||
define('PHP_API_BAD_PARAM', -1);
|
||||
define('SESSION_TIMEOUT_LOGOUT',6000);
|
||||
|
||||
define('ASSIGN_MODE_FAMILY', 110011);
|
||||
define('ASSIGN_MODE_INDIVIDUAL', 110022);
|
||||
define('ASSIGN_MODE_EMAIL', 110033);
|
||||
define('ASSIGN_MODE_GROUP', 110044);
|
||||
|
||||
|
||||
define('MOBILE_LOGIN', 1101);
|
||||
|
||||
define('LOGIN_MODE_GENERAL', 1100);
|
||||
define('LOGIN_MODE_FAMILY', 1105);
|
||||
|
||||
define('SUPPORT_PHONE','+234 (818)-3866434');
|
||||
|
||||
define('UPLOAD_FILE_SIZE',1);
|
||||
@@ -103,6 +154,8 @@ define('WRENCHBOARD_ACCOUNT_SETPASSWD', 11017);
|
||||
define('WRENCHBOARD_DELETE_PENDING_LINK', 11018);
|
||||
define('WRENCHBOARD_RESEND_PENDING_LINK', 11019);
|
||||
|
||||
define('WRENCHBOARD_GOOGLE_LOGIN', 11027);
|
||||
define('WRENCHBOARD_APPLE_LOGIN', 11031);
|
||||
|
||||
define('WRENCHBOARD_ACCOUNT_CREATEACC', 11020);
|
||||
define('WRENCHBOARD_ACCOUNT_LOGIN', 11025);
|
||||
@@ -134,6 +187,8 @@ define('WRENCHBOARD_USER_SENDJOBINT', 11052);
|
||||
define('WRENCHBOARD_ACCOUNT_WALLETS', 11060);
|
||||
define('WRENCHBOARD_ACCOUNT_REFFERHX', 11064);
|
||||
|
||||
define('WRENCHBOARD_ACCOUNT_PREPARE_TOPUP', 11062);
|
||||
define('WRENCHBOARD_ACCOUNT_COMPLETE_TOPUP', 11063);
|
||||
|
||||
define('WRENCHBOARD_ACCOUNT_PRICE_COMBO', 11171);
|
||||
define('WRENCHBOARD_ACCOUNT_JOBPOST_DURATION', 11173);
|
||||
@@ -149,7 +204,11 @@ define('WRENCHBOARD_ACCOUNT_HOMEBANNERS', 11200);
|
||||
|
||||
define('WRENCHBOARD_ACCOUNT_END', 11999);
|
||||
//**************************************************************
|
||||
define('WRENCHBOARD_JOB_POSTAGREE', 13002);
|
||||
define('WRENCHBOARD_JOB_LISTJOBS', 13005);
|
||||
define('WRENCHBOARD_JOB_OFFERS', 13006);
|
||||
define('WRENCHBOARD_JOB_ACTIVE', 13008);
|
||||
|
||||
define('WRENCHBOARD_JOB_CREATEJOB',13010 );
|
||||
define('WRENCHBOARD_JOB_DELETEJOB',13011 );
|
||||
|
||||
@@ -158,6 +217,8 @@ define('WRENCHBOARD_JOB_DELETE_GROUPMEMBER',13017);
|
||||
define('WRENCHBOARD_JOB_CREATE_GROUP', 13020);
|
||||
define('WRENCHBOARD_JOB_DELETE_GROUP',13023);
|
||||
|
||||
define('WRENCHBOARD_JOB_OFFER_SYSTEM',13025);
|
||||
define('WRENCHBOARD_JOB_OFFER_FAMILY',13029);
|
||||
define('WRENCHBOARD_JOB_OFFER_INDVI',13030);
|
||||
define('WRENCHBOARD_JOB_OFFER_GROUP',13031);
|
||||
define('WRENCHBOARD_JOB_OFFER_PUBLIC',13032);
|
||||
@@ -168,6 +229,9 @@ define('WRENCHBOARD_JOB_SEND_QUESTION',13036);
|
||||
define('WRENCHBOARD_JOB_MRKTINT_QUEST',13037);
|
||||
define('WRENCHBOARD_JOB_REPLY_QUESTION',13038);
|
||||
//define('WRENCHBOARD_JOB_REPLY_QUESTION',13038);
|
||||
define('WRENCHBOARD_JOB_EXTEND_EXPIRE' ,13041);
|
||||
define('WRENCHBOARD_JOB_RESEND_MESSAGE',13042);
|
||||
define('WRENCHBOARD_JOB_CANCEL_OFFER' ,13043);
|
||||
|
||||
//define('WRENCHBOARD_JOB_SEND_QUESTION',13036);
|
||||
|
||||
@@ -180,11 +244,18 @@ define('WRENCHBOARD_GROUP_ACCEPTGROUP', 12020);
|
||||
|
||||
define('WRENCHBOARD_GROUP_END', 12999);
|
||||
//**************************************************************
|
||||
define('WRENCHBOARD_FAMILY_LIST', 22010);
|
||||
define('WRENCHBOARD_FAMILY_ADD', 22015);
|
||||
define('WRENCHBOARD_FAMILY_UPDATE', 22020);
|
||||
define('WRENCHBOARD_FAMILY_MANAGE', 22025);
|
||||
|
||||
define('WRENCHBOARD_CONTRACT_MESSAGE', 14010);
|
||||
define('WRENCHBOARD_CONTRACT_MSGLIST', 14011);
|
||||
|
||||
define('WRENCHBOARD_CONTRACT_STATUS', 14015);
|
||||
|
||||
|
||||
|
||||
define('WRENCHBOARD_MOBILE_OFFERSLIST', 15010);
|
||||
define('WRENCHBOARD_MOBILE_ACTIVEJOB', 15020);
|
||||
define('WRENCHBOARD_MOBILE_LOADPROFILE', 15030);
|
||||
|
||||
@@ -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,
|
||||
"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');
|
||||
|
||||
?>
|
||||
@@ -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,
|
||||
"limit" => 20,
|
||||
"offset" => 1,
|
||||
'action'=>WRENCHBOARD_FAMILY_LIST
|
||||
);
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'familylist');
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
include_once('def.php');
|
||||
include('wrenchboard_class.php');
|
||||
$wrenchboard = new wrenchboard_class();
|
||||
|
||||
|
||||
$username = 'D2P4BB6DFB';
|
||||
|
||||
$data['username'] = $username;
|
||||
$data['pin'] = '1234';
|
||||
$data['login_mode'] = LOGIN_MODE_FAMILY;
|
||||
$data['sessionid'] = rand(10000,99999)."A".rand(10000,99999); // dummy for a start
|
||||
$data['action'] = WRENCHBOARD_ACCOUNT_LOGIN;
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->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);
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?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" => 'a24f1193-7885-4c26-afac-3e5ad744ef40',
|
||||
'action'=>WRENCHBOARD_FAMILY_MANAGE
|
||||
);
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'familymanage');
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?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" => '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 =>
|
||||
*/
|
||||
?>
|
||||
@@ -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,
|
||||
"limit" => 20,
|
||||
"page" => 1,
|
||||
'action'=>WRENCHBOARD_ACCOUNT_JOBLIST
|
||||
);
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'getjobsdata');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ foreach($tArr as $rr){
|
||||
$i++;
|
||||
$urlS = $dm.$rr[0].".php";
|
||||
$docU = $dm.$rr[2];
|
||||
echo "<tr><td style='width: 20px'>$i</td><td style='width: 120px'><a href='".$urlS ."' target='BLANK'>".$urlS ."</a></td><td><b>".$rr[1]."</b></td>
|
||||
echo "<tr ".$rr[3]." ><td style='width: 20px'>$i</td><td style='width: 120px'><a href='".$urlS ."' target='BLANK'>".$urlS ."</a></td><td><b>".$rr[1]."</b></td>
|
||||
<td style='width: 120px'><a href='".$docU ."' target='BLANK'>".$docU ."</a></td></tr>";
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
"limit" => 30,
|
||||
"offset" => 0,
|
||||
'action'=>WRENCHBOARD_JOB_ACTIVE
|
||||
);
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'jobmanageractive');
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?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,
|
||||
'action'=>WRENCHBOARD_JOB_POSTAGREE
|
||||
);
|
||||
|
||||
$out = array();
|
||||
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'jobmanageragree');
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?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,
|
||||
"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
|
||||
?>
|
||||
@@ -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,
|
||||
"job_uid" => 'fa85e591-fcbf-4ad5-8142-3e58a91237d9',
|
||||
"job_id" => 162,
|
||||
'action'=>WRENCHBOARD_JOB_DELETEJOB
|
||||
);
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'jobmanagerdeletejob');
|
||||
//jobmanagerupdatejob
|
||||
?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?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,
|
||||
"limit" => 30,
|
||||
"offset" => 0,
|
||||
'action'=>WRENCHBOARD_JOB_OFFERS
|
||||
);
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,'jobmanageroffers');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
@@ -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_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
|
||||
?>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
include_once('def.php');
|
||||
include('wrenchboard_class.php');
|
||||
$wrenchboard = new wrenchboard_class();
|
||||
|
||||
|
||||
$email = 'ses66181+1@gmail.com';
|
||||
|
||||
$data['username'] = $email;
|
||||
$data['password'] = 'may12002';
|
||||
$data['loc'] = "38.101.241.200";
|
||||
$data['sessionid'] = rand(10000,99999)."A".rand(10000,99999); // dummy for a start
|
||||
$data['action'] = WRENCHBOARD_GOOGLE_LOGIN;
|
||||
$data['login_channel'] = LOGIN_GOOGLE;
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->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);
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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,
|
||||
"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
|
||||
@@ -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,
|
||||
"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');
|
||||
?>
|
||||
@@ -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,
|
||||
"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');
|
||||
?>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?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,
|
||||
"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
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<?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,
|
||||
"amount" => 100*rand(100,2000),
|
||||
"currency" => 'NGN',
|
||||
'action'=>WRENCHBOARD_ACCOUNT_PREPARE_TOPUP
|
||||
);
|
||||
|
||||
$out = array();
|
||||
$ret = $wrenchboard->wrenchboard_api($data,$out,"starttopup");
|
||||
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
include_once('def.php');
|
||||
include 'session_read.php';
|
||||
include('wrenchboard_class.php');
|
||||
$wrenchboard = new wrenchboard_class();
|
||||
|
||||
$data = array(
|
||||
"sessionid" => "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');
|
||||
|
||||
?>
|
||||
@@ -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() {
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
168B2E069AE786C6094652A7CBE25F8C6FA1998B8F963F7CA18B50D09D556F3E
|
||||
187
|
||||
b4f14eb5-b663-4f88-a7e3-2e2131a7543a
|
||||
@@ -0,0 +1,3 @@
|
||||
DFD8812B9A3ABE7FCF920B71A22AA3E93BB9F9C33AE22E90AAC47537367B2E2B
|
||||
1
|
||||
3119b744-42ad-4834-bb83-b737588754ca
|
||||
Reference in New Issue
Block a user