]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added stub oembed api endpoint
authorCraig Andrews <candrews@integralblue.com>
Wed, 15 Jul 2009 14:29:54 +0000 (10:29 -0400)
committerCraig Andrews <candrews@integralblue.com>
Wed, 15 Jul 2009 14:29:54 +0000 (10:29 -0400)
actions/api.php
actions/twitapilaconica.php
lib/router.php

index 452ed8e824a17c914904f459522bf31fb442d238..fa5a7e7ae9edeb82cb3dcaa4c45b9d2bf465d1b8 100644 (file)
@@ -129,6 +129,7 @@ class ApiAction extends Action
                                 'laconica/config',
                                 'laconica/wadl',
                                 'tags/timeline',
+                                'laconica/oembed',
                                 'groups/timeline');
 
         static $bareauth = array('statuses/user_timeline',
index 8cd7a64b9f40b27de55b9cff9beeb224b3f96134..ec40bc627325874082ffc295a98d567cb790ea9f 100644 (file)
@@ -171,4 +171,12 @@ class TwitapilaconicaAction extends TwitterapiAction
         parent::handle($args);
         $this->serverError(_('API method under construction.'), 501);
     }
+
+    function oembed($args, $apidata)
+    {
+        parent::handle($args);
+        $url = $args['url'];
+        print_r($apidata);
+        die("oembed!");
+    }
 }
index e1213863701b9318ef3124831c9aab1d45e92337..652d2a266328a61510ba18159eae20944752ba83 100644 (file)
@@ -390,6 +390,10 @@ class Router
 
         // laconica
 
+        $m->connect('api/laconica/:method',
+                    array('action' => 'api',
+                          'apiaction' => 'laconica'));
+
         $m->connect('api/laconica/:method',
                     array('action' => 'api',
                           'apiaction' => 'laconica'));