media.upload

画像をuploadします

struct media
static
string
upload

Examples

import std.json;

// 画像をuploadして、画像のidを取得する
string uploadImage(Twitter tw, string imgFilePath)
{
    return parseJSON(tw.callAPI!"media.upload"(imgFilePath))["media_id_string"].str;
}

Meta