forked from GNUsocial/gnu-social
Make Twitter Media upload API v1.1 reach us
Now we just have to accept the 'media' or 'media_data' (base64 encoded) POST arguments instead of $_FILES uploads.
This commit is contained in:
@@ -764,6 +764,13 @@ class Router
|
||||
'api/statuses/update_with_media.json',
|
||||
array('action' => 'ApiMediaUpload')
|
||||
);
|
||||
// Twitter Media upload API v1.1
|
||||
$m->connect(
|
||||
'api/media/upload.:format',
|
||||
array('action' => 'ApiMediaUpload',
|
||||
'format' => '(xml|json)',
|
||||
)
|
||||
);
|
||||
|
||||
// search
|
||||
$m->connect('api/search.atom', array('action' => 'ApiSearchAtom'));
|
||||
|
||||
Reference in New Issue
Block a user