To php devs, how do you deal with a such array for passing it to a post call via curl: foo=1&foo=2&foo=3?
Using $params["media_ids"] = \json_encode($media); didn't work, media are ignored. ($media is an array of ids).
I also tried:
$curl->setOpt(CURLOPT_POSTFIELDS, json_encode($params) );
with no success
I use: https://packagist.org/packages/curl/curl
Thanks for helping.
Work in progress for https://mastodon.social/web/statuses/101862779512540706