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
const https = require('https'); | |
exports.handler = async (event, context) => { | |
let dataString = ''; | |
const response = await new Promise((resolve, reject) => { | |
if (event.Details.Parameters.zipCode) { | |
var url = 'https://api.my-secret-domain.de/news?zip=' + event.Details.Parameters.zipCode; | |
} else { | |
var phoneNumber = event.Details.ContactData.CustomerEndpoint.Address.replace('+', '00'); | |
console.warn(phoneNumber); |
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 | |
namespace KaufmannDigital\Neos\Base\Eel\Helper; | |
use TYPO3\Flow\Annotations as Flow; | |
use TYPO3\Eel\ProtectedContextAwareInterface; | |
use TYPO3\Flow\Property\PropertyMapper; | |
/** | |
* Class PropertyMapperHelper | |
* |