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

How to encode "'" and so on? #192

Closed JohnSinclair111 closed 7 years ago

JohnSinclair111 commented 7 years ago

I use this to post a new status:

$params = array( 'status' => $message_to_share, 'media_ids' => $mediaID ); $reply = $cb->statuses_update( $params );

Works fine. But: If $message_to_share has an "'" (apostrophe) in it, it don't work and shows an \' in the tweet. How to encode such characters, without remove them from message?

mynetx commented 7 years ago

If your message to share has an apostrophe, why would you not want to see it in the Tweet? Can you post a sample of a failing call?

mynetx commented 7 years ago

Closing this due to no further reply received. If you see this and want to restart the conversation, feel free to comment here.