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:
Mikael Nordfeldth
2016-01-14 18:29:21 +01:00
parent 6e49281adb
commit 0caf0612d0
4 changed files with 83 additions and 15 deletions

View File

@@ -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'));