jublo / codebird-php

Easy access to the Twitter REST API, Direct Messages API, Account Activity API, TON (Object Nest) API and Twitter Ads API — all from one PHP library.
https://www.jublo.net/projects/codebird/php
GNU General Public License v3.0
777 stars 235 forks source link

Media alt text #222

Closed chrisjonesio closed 6 years ago

chrisjonesio commented 6 years ago

Greetings,

I've perused some of the other issues relating to adding metadata to media uploads via Codebird but haven't seen a mention of being able to add alternate text to media for accessibility purposes. Looking through the POST API endpoints in the code it looks like media/metadata/create isn't one of them.

Could this be a feature in a future release? It's not a burning issue, I just think it'd be cool for our visually-impaired followers.

Thanks!

Just for reference:

Twiiter API doc: POST media/metadata/create

// upload media using media_upload // get the media ID from the result, then use below $media_alt_text_reply = $cb->media_metadata_create(array( "media_id" => $mediaID, "alt_text" => array( "text" => $alt_text ) ));

mynetx commented 6 years ago

Hi Chris, it could – and will! We’re in the process of updating our endpoint list, so please stay tuned! :)

mynetx commented 6 years ago

@chrisjonesio Please help test this API method in the Codebird beta that will get pushed later today.

promeo commented 6 years ago

The upwork contract is not working in case you want me to complete this. Thanks

On Thu, Aug 16, 2018 at 1:26 AM, Jublo notifications@github.com wrote:

@chrisjonesio https://github.com/chrisjonesio Please help test this API method in the Codebird beta that will get pushed later today.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/jublonet/codebird-php/issues/222#issuecomment-413371230, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHxtc3HE9lQUfrURlrVQTAmThixy9Q1ks5uRK41gaJpZM4RV1D4 .

mynetx commented 6 years ago

You’re still available to work on the unit and functional tests for Codebird? Send me an email to support@jublo.netmailto:support@jublo.net.

J.M.

(+44) 843 506 8886 www.jublo.nethttp://www.jublo.net

[cid:8B43C7C3-9C76-4275-A043-6C098B882901]

Jublo Limited, Number One, Great Exhibition Way, Kirkstall Forge, Leeds LS5 3BF. Registered in England and Wales, Company No. 10739728, VAT No. GB 183761680

chrisjonesio commented 6 years ago

@jublo I'll take a look at the Codebird beta later this evening and give it a shot. Looking forward to it!

chrisjonesio commented 6 years ago

@jublo I have whipped up a quick test, and all seems to be working! I could post a new tweet with an image that included alternate text. Alt text appeared in both the Firefox developer tools accessibility panel and VoiceOver on my Mac read the alt text on the Twitter web site when the image was selected.

This is great!

mynetx commented 6 years ago

@chrisjonesio Good to know that it works as expected. Do you care to test also the other new endpoints – see #231?