Weitere ähnliche Inhalte Ähnlich wie Inspiring conference - Automation & external service integration (20) Kürzlich hochgeladen (20) Inspiring conference - Automation & external service integration27. /**
* Embedly Helper
*/
class EmbedlyHelper implements ProtectedContextAwareInterface
{
/**
* @param string $url
* @return array
*/
public function oembed($url)
{
$embedly = new Embedly();
$response = $embedly->oembed([
'url' => $url
]);
$data = json_decode(json_encode(reset($response)), true);
return $data;
}
/**
* All methods are considered safe
*
* @param string $methodName
* @return boolean
*/
public function allowsCallOfMethod($methodName)
{
28. prototype(Ttree.Embedly:Oembed) {
@override.response = ${Embedly.oembed(q(node).property('url'))}
content = TYPO3.TypoScript:Case {
link {
condition = ${response.type == 'link'}
type = 'Ttree.Embedly:Oembed.Link'
}
video {
condition = ${response.type == 'video'}
type = 'Ttree.Embedly:Oembed.Video'
}
photo {
condition = ${response.type == 'photo'}
type = 'Ttree.Embedly:Oembed.Photo'
}
}
}
38.
ngrok is your best friend
make your web hooks available online
39. # ngrok http -host-header=rewrite
-subdomain=cloud-butler
master-dev.neos-workplace.dev:80
51. hello@ttree.ch - @ttreeagency - github.com/ttreeagency
tt ttree
digital beans
you are welcome in our office @ lausanne
don’t be shy ping us is you are in the area