Home banners
This commit is contained in:
@@ -4,5 +4,6 @@
|
||||
#include "vars.h"
|
||||
|
||||
long recommendation_engine(long action , CVars in, CVars &out);
|
||||
long WrenchHomeBanners(CVars in, CVars &out);
|
||||
|
||||
#endif
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "history.h"
|
||||
|
||||
#include "jobs.h"
|
||||
#include "reco_engine.h" //error in file name
|
||||
|
||||
#define CREATE_BY_EMAIL 1000
|
||||
#define CREATE_BY_PHONE 2000
|
||||
@@ -431,6 +432,9 @@ long account_calls(CVars in, CVars &out) {
|
||||
case WRENCHBOARD_VERIFY_PENDING_LINK:
|
||||
return VerifyWrenchAccountLink( in, out);
|
||||
break;
|
||||
case WRENCHBOARD_ACCOUNT_HOMEBANNERS:
|
||||
return WrenchHomeBanners(in, out);
|
||||
break;
|
||||
}
|
||||
logfmt(logINFO, "/account_calls()");
|
||||
return ret;
|
||||
@@ -439,6 +443,8 @@ long account_calls(CVars in, CVars &out) {
|
||||
#define PHP_API_TRANSFER_COMPLETE 200
|
||||
|
||||
|
||||
|
||||
|
||||
long VerifyWrenchAccountLink(CVars in, CVars &out) {
|
||||
logfmt(logINFO, "VerifyWrenchAccountLink()");
|
||||
long ret = PHP_API_BAD_PARAM;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "cgi.h"
|
||||
#include "input.h"
|
||||
#include "wrenchboard_api.h"
|
||||
#include "reco_engine.h"
|
||||
#include "reco_engine.h" //error in file name
|
||||
#include "email.h"
|
||||
#include "safestring.h"
|
||||
#include <string>
|
||||
@@ -55,6 +55,11 @@ long recommendation_engine(long action , CVars in, CVars &out) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// also used from accounts
|
||||
long WrenchHomeBanners(CVars in, CVars &out) {
|
||||
out["status"] = "long WrenchHomeBanners(CVars in, CVars &out)";
|
||||
return 111;
|
||||
}
|
||||
|
||||
long sendOffersRecommendation( CVars in, CVars &out){
|
||||
|
||||
|
||||
@@ -206,6 +206,9 @@ define('WRENCHBOARD_ACCOUNT_COUNTRY_COMBO', 11179);
|
||||
define('WRENCHBOARD_ACCOUNT_JOB_COUNTRY', 11181);
|
||||
define('WRENCHBOARD_ACCOUNT_COUNTRY_BANKS', 11183);
|
||||
|
||||
|
||||
define('WRENCHBOARD_ACCOUNT_HOMEBANNERS', 11200);
|
||||
|
||||
define('WRENCHBOARD_USER_DELETEACC', 11990);
|
||||
define('WRENCHBOARD_ACCOUNT_END', 11999);
|
||||
//**************************************************************
|
||||
|
||||
@@ -47,6 +47,7 @@ $routes->post('/en/wrench/api/v1/createmobileuser', 'WrenchApi::apigate');
|
||||
$routes->post('/en/wrench/api/v1/completemobileuser', 'WrenchApi::apigate');
|
||||
$routes->post('/en/wrench/api/v1/startresetpasword', 'WrenchApi::apigate');
|
||||
$routes->post('/en/wrench/api/v1/userlogin', 'WrenchApi::apigate');
|
||||
$routes->post('/en/wrench/api/v1/homebanners', 'WrenchApi::apigate');
|
||||
$routes->post('/en/wrench/api/v1/startjoblist', 'WrenchApi::apigate');
|
||||
$routes->get('/en/wrench/api/v1/startjoblist', 'WrenchApi::apigate');
|
||||
$routes->post('/en/wrench/api/v1/dashdata', 'WrenchApi::apigate');
|
||||
|
||||
@@ -32,6 +32,7 @@ class WrenchApi extends BaseController
|
||||
'apigate' => ['POST'],
|
||||
'generics' => ['POST'],
|
||||
'createuser' => ['POST'],
|
||||
'homebanners' => ['POST'],
|
||||
'verifysignuplink' => ['POST'],
|
||||
'createmobileuser' => ['POST'],
|
||||
'completemobileuser' => ['POST'],
|
||||
@@ -81,6 +82,9 @@ class WrenchApi extends BaseController
|
||||
|
||||
private function prepareEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){
|
||||
switch ($endpoint) {
|
||||
case 'homebanners':
|
||||
$in["action"] = WRENCHBOARD_ACCOUNT_HOMEBANNERS ;
|
||||
break;
|
||||
case 'verifysignuplink':
|
||||
$in["action"] = WRENCHBOARD_VERIFY_PENDING_LINK ;
|
||||
break;
|
||||
|
||||
@@ -11,6 +11,7 @@ $endpoints = array(
|
||||
'apigate' => array('POST'),
|
||||
'generics' => array('POST'),
|
||||
'createuser' => array('POST'),
|
||||
'homebanners' => array('POST'),
|
||||
'verifysignuplink' => array('POST'),
|
||||
'createmobileuser' => array('POST'),
|
||||
'completemobileuser' => array('POST'),
|
||||
@@ -116,6 +117,9 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
|
||||
}
|
||||
$in["loc"] = $_SERVER["REMOTE_ADDR"];
|
||||
switch ($endpoint) {
|
||||
case 'homebanners':
|
||||
$in["action"] = WRENCHBOARD_ACCOUNT_HOMEBANNERS ;
|
||||
break;
|
||||
case 'verifysignuplink':
|
||||
$in["action"] = WRENCHBOARD_VERIFY_PENDING_LINK ;
|
||||
break;
|
||||
|
||||
@@ -100,6 +100,7 @@ define('WRENCHBOARD_USER_SENDJOBINT', 11052);
|
||||
|
||||
define('WRENCHBOARD_ACCOUNT_WALLETS', 11060);
|
||||
|
||||
define('WRENCHBOARD_ACCOUNT_HOMEBANNERS', 11200);
|
||||
|
||||
define('WRENCHBOARD_ACCOUNT_END', 11999);
|
||||
//**************************************************************
|
||||
|
||||
Reference in New Issue
Block a user