themattharris / tmhOAuth

An OAuth 1.0A library written in PHP
Apache License 2.0
855 stars 335 forks source link

Parameters for direct message on twitter #198

Closed pradeep-lipl closed 4 years ago

pradeep-lipl commented 4 years ago

Hello There,

Error is occurring at line number 362 in tmhOAuth/tmhOAuth.php file. When we are sending the params as per the twitter new endpoints not able to use because an error occurred in the below code in prepare_params() function.

  if (is_array($v))
    $v = implode(',', $v);

Is there any way to set a multidimensional array or setting header type JSON in curl.