Hi together,
I am currently upgrading from REST API v1 to v1.1. My login process ist already working. Now I want to create a new tweet using tmhOAuth. Here my code:
$code = $tmhOAuth->user_request(
'POST',
'1.1/statuses/update_with_media',
array(
'media[]' => "@{/path_to_image/imagename.jpg};type=image/jpeg;filename={imagename.jpg}",
'status' => "Please tweet me"
),
true, // use auth
true // multipart
);
print_r($tmhOAuth->response);
Here is the response:
Array
(
[raw] =>
[code] => 0
[response] =>
[info] => Array
(
[url] => HTTP://://
...
)
[error] => Couldn't resolve host ''
[errno] => 6
)
Can anyone help me solving the issue?
Greetings,
Tobias