Skip to content

Instantly share code, notes, and snippets.

@Nikdro
Nikdro / lambda-GetLocalNews.js
Created March 22, 2020 18:48
Lambda-Code calling the content-API of #PodcastPhone
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);
@Nikdro
Nikdro / PropertyMapperHelper.php
Last active March 22, 2017 11:32
Neos: This class implements \TYPO3\Flow\Property\PropertyMapper into TypoScript2 / Fusion
<?php
namespace KaufmannDigital\Neos\Base\Eel\Helper;
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Eel\ProtectedContextAwareInterface;
use TYPO3\Flow\Property\PropertyMapper;
/**
* Class PropertyMapperHelper
*