media/uploadをエントリーポイントに乗せた(#56)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#include "cocoatweet/api/media/media.h"
|
||||
|
||||
namespace CocoaTweet::API::Medias {
|
||||
Media::Media(std::shared_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
|
||||
oauth_ = _oauth;
|
||||
}
|
||||
|
||||
CocoaTweet::API::Model::MediaStore Media::Upload(const std::string& _media) const {
|
||||
CocoaTweet::API::Medias::Upload upload;
|
||||
upload.media(_media);
|
||||
return upload.process(oauth_);
|
||||
}
|
||||
} // namespace CocoaTweet::API::Statuses
|
||||
Reference in New Issue
Block a user