Menu

#291 Support creating ext alt text

open
nobody
None
2019-09-26
2018-08-17
Anonymous
No

Originally created by: takke

Refreshed version of PR [#237] using post method from PR [#260]


see https://blog.twitter.com/2016/alt-text-support-for-twitter-cards-and-the-rest-api

we can set the alt text of the attached image as below:

final UploadedMedia m = twitter.uploadMedia(file);
twitter.createMediaMetadata(m.getMediaId(), "alt metadata text");

final StatusUpdate update = new StatusUpdate(statusText);
final long[] mediaIds = new long[1];
mediaIds[0] = m.getMediaId();
update.setMediaIds(mediaIds);
twitter.updateStatus(update);

and also added uploadMultipleImages.cmd and uploadMultipleImages.sh, it missed when I added UploadMultipleImages.java

Discussion

  • Anonymous

    Anonymous - 2019-09-26

    Originally posted by: AndreaFalcon

    Any hope to have this merged any time soon?

     
  • Anonymous

    Anonymous - 2019-09-26

    Originally posted by: SamiSousa

    Any hope to have this merged any time soon?

    @yusuke ^^^

     

Log in to post a comment.