This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$json = "JOUW JSON KEY HIER"; | |
$project_id = "JOUW Project ID HIER "; | |
$entity_type_id = "entity_type_id"; | |
private function entity_create( array $entitie_array) | |
{ | |
try { | |
$entityTypesClient = new EntityTypesClient([ | |
'credentials' => public_path($json) | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var label_id = 6; | |
var campaign_id = 511; | |
var data = { | |
'email': email, | |
'campaign_id':campaign_id, | |
'firstname': voornaam, | |
'lastname': achternaam, | |
'lastname_prefix': '', | |
'label_id': label_id, | |
'gender': gender, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
method:"POST", | |
url:"https://sendtportal.com/process_person", | |
dataType: 'json', | |
data:{ | |
'email': email, | |
'campaign_id':2, | |
'firstname': voornaam, | |
'lastname': achternaam, | |
'lastname_prefix': '', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UserProfileMatch.getNewUser(item.fk_user_id).then(function (user) { | |
ActiveAuctionProfile.closeActiveAuctionProfile(item.aap_id).then(function () { | |
if(user.length > 0 ) { | |
ActiveAuctionProfile.isProfileActive(user[0].profile_id).then(function (is_active) { | |
UserProfileMatch.countActiveProfilesForUser(item.fk_user_id).then(function (number_of_profiles) { | |
if(is_active.result === 0 && number_of_profiles < config.settings.lovingbids_start_profile) { | |
UserProfileMatch.updateProfileMatch(item.fk_user_id, user[0].profile_id,1,false).then(function () { | |
ActiveAuctionProfile.createNewActiveProfile({ | |
fk_auction_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function subscribeNewsLetter($data, $type = 'subscribe',$engine_username,$engine_password,$engine_url) | |
{ | |
ini_set('soap.wsdl_cache_enabled', '0'); | |
try { | |
$wsdl = $engine_url; | |
$client = new \SoapClient( | |
$wsdl, | |
[ | |
'login' => $engine_username, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$data = array ( | |
'email' => (isset($_GET['email']) ? $_GET['email'] : ''), | |
'voornaam' => (isset($_GET['firstname']) ? $_GET['firstname'] : ''), | |
'achternaam' => (isset($_GET['lastname']) ? $_GET['lastname'] : ''), | |
'geslacht' => (isset($_GET['gender']) ? $_GET['gender'] : ''), // m v | |
'geboortedatum' => (isset($_GET['dob']) ? $_GET['dob'] : ''), // dd-mm-yy | |
'actieid' => '4', | |
'campaign' => 'basebuilders', | |
'campaign_medium' => $campaign_medium, | |
'specification' => $specificatie, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php ini_set('display_errors', 0); | |
header('Content-Type: application/json'); | |
/** | |
* @Author: Erwin Nandpersad | |
* @website: https://www.hellospecial.com | |
* Class Engine | |
*/ | |
class Engine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import $ from 'jquery'; | |
import {settings} from './config'; | |
export class Bid | |
{ | |
constructor() | |
{ | |
this.user_id = parseInt($('input[name=uuid]').val()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Previous user was a bot | |
*/ | |
if (bid.fk_user_id === 0 && bid.fk_profile_bot_id > 0) { | |
var bid_type = method.populateBidType(bid); | |
var new_bid = bid.bid + 1; | |
Profilebot.generateRandomAutobotId(bid.fk_profile_bot_id).then(function (bot) { | |
return bot; | |
}).then(function (bot) { | |
var insert_data = ProfileBid.prepareInsertData(bid.fk_user_id, bot.bot_id, item.id, new_bid, bid_type); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bid_type = method.populateBidType(bid); | |
var new_bid = bid.bid + 1; | |
Profilebot.generateRandomAutobotId(bid.fk_profile_bot_id).then(function (bot) { | |
return bot; | |
}).then(function (bot) { | |
var insert_data = ProfileBid.prepareInsertData(bid.fk_user_id, bot.bot_id, item.id, new_bid, bid_type); | |
return insert_data; | |
}).then(function (insert_data) { | |
return insert_data; | |
}).then(function (insert_data) { |
NewerOlder