Closed 2s2d closed 9 years ago
I'm using https://github.com/themattharris/tmhOAuth library for API calls. When i try update_profile_image all good:
$code = $tmhOAuth->request( 'POST', $tmhOAuth->url('1.1/account/update_profile_image'), array('image' => "@{$image_path};type=image/jpeg;filename={$name}"), true, // use auth true // multipart );
So, When i try update_profile_background_image with the same image:
$code = $tmhOAuth->request( 'POST', $tmhOAuth->url('1.1/account/update_profile_background_image'), array('image' => "@{$image_path};type=image/jpeg;filename={$name}"), true, // use auth true // multipart );
not updating. So, i try:
$params = array( 'image' => "@{$file_link};type={$file_type};filename={$file_name}", ); $params['use'] = 'true'; $code = $tmhOAuth->request('POST', $tmhOAuth->url("1.1/account/update_profile_background_image.json"), $params, true, // use auth true // multipart ); if ($code == 200) echo 'background image updated.'; else echo 'Something went worng!!';
and the same result - nothing. Can you help?
I'm using https://github.com/themattharris/tmhOAuth library for API calls. When i try update_profile_image all good:
So, When i try update_profile_background_image with the same image:
not updating. So, i try:
and the same result - nothing. Can you help?