星期四, 5月 04, 2017

[Objective-C] 快快樂樂用Twitter REST: Upload Media

一般上傳超過15mb
 errors =     (
                {
            code = 130;
            message = "Over capacity";
        }
    );
}

Chunk upload上傳

errors =     (
                {
            code = 324;
            message = "Not valid video";
        }
    );


 {
    error = "Large file can not be finalized synchronously.";
    request = "/1.1/media/upload.json";
}


{
  "media_id": 845498780979908608,
  "media_id_string": "845498780979908608",
  "size": 16440765,
  "expires_after_secs": 86400,
  "processing_info": {
    "state": "pending",
    "check_after_secs": 5
  }

}


{
    error = "Invalid media_id: Some((null)).";
    request = "/1.1/media/upload.json";

}


{
    error = "Segments do not add up to provided total file size.";
    request = "/1.1/media/upload.json";

}

沒有留言:

張貼留言

留個話吧:)