Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Inspiring conference 2016 - Automation & external service integration

Inspiring conference 2016 - Automation & external service integration

How to integration External Service in your web project ? Example based on PHP project by using Flow Framework or Neos CMS, but should be useful in any kind of language.

Dominique Feyer

April 22, 2016
Tweet

More Decks by Dominique Feyer

Other Decks in Technology

Transcript

  1. /** * 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) {
  2. 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' } } }
  3. opensource & sharing
 is part of our DNA we love

    client project to support our open source efforts
  4. [email protected] - @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