inspiring conference - automation & external service integration

51
Text Automation and External services Integration in Neos explore tt ttree digital beans

Upload: dfeyer

Post on 14-Apr-2017

799 views

Category:

Technology


1 download

TRANSCRIPT

Text

Automation and External services Integration in Neos

explore

tt ttreedigital beans

tt ttreedigital beans

Building website since 2000

Back then a website were just an island

But everything changed

Define « external service »

Why you need external service ?

not invented here

simple does not mean easy

pay as you go

Give me some good external service ?

filepreviews.io

https://dl.dropboxusercontent.com/s/opcxbgkl4znvdc3/2016-04-19%20at%2022.43.png?dl=0

FilePreviewsgithub.com/ttreeagency

cloudconvert.com

moltin.com

AWS Lambda and many many more

But how ?

has an editor,

I need to preview link to external website in my blog post

Let’s build a web scrapper

or try to integrate embed.ly

/** * 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) { return true;

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' } } }

Embedlygithub.com/ttreeagency

This world is full of Unicorns

Pitfalls and Pain points

vendor lock in

external downtime

pricing

hard to code with external dependencies

ngrok is your best friend

make your web hooks available online

# ngrok http -host-header=rewrite \ -subdomain=cloud-butler \ master-dev.neos-workplace.dev:80

What about automation ?

web hook in Neos

CloudButlerproject under development

trigger based on temporal data

Schedulergithub.com/ttreeagency

sync data from external source

Aggregatorgithub.com/ttreeagency

Aggregatorgithub.com/ttreeagency

opensource & sharingis part of our DNA

we love client project to support our open source efforts

[email protected] - @ttreeagency - github.com/ttreeagency

tt ttreedigital beans

you are welcome in our office @ lausanne don’t be shy ping us is you are in the area