Reddit/Embedly.php
authorAlan Knowles <alan@roojs.com>
Tue, 9 Dec 2014 07:50:59 +0000 (15:50 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 9 Dec 2014 07:50:59 +0000 (15:50 +0800)
Reddit/Embedly.php

index e69de29..394937c 100644 (file)
@@ -0,0 +1,19 @@
+<?php
+
+class Reddit_Embedly {
+    
+    function getAuth()
+    {
+        return true;
+    }
+    function get()
+    {
+        echo '<a class="embedly-card" href="'. htmlspecialchars($_REQUEST['url']) . '">'.htmlspecialchars($_REQUEST['url'])  . '</a>
+        <script async src="//cdn.embedly.com/widgets/platform.js" charset="UTF-8"></script>';
+        
+        exit;
+        
+        
+    }
+    
+}