I tried to use as you provided in example like:
$method = 'uploadListingImage'; $args = array( 'params' => array( 'listing_id' => 123456 ), 'data' => array( 'image' => array('file.jpg;type=image/jpeg') ) );
I got the error message:
'Exception' with message 'Invalid params for method "uploadListingImage": Invalid data param type "image" (15.1.jpg;type=image/jpeg: string): required type "imagefile"
I tried to use as you provided in example like:
$method = 'uploadListingImage'; $args = array( 'params' => array( 'listing_id' => 123456 ), 'data' => array( 'image' => array('file.jpg;type=image/jpeg') ) );
I used like:
$taxo = $api->uploadListingImage( array( 'params' => array( 'listing_id' => 509505496, ), 'data' => array( 'image'=> array('15.1.jpg;type=image/jpeg') ) ) );
I got the error message: 'Exception' with message 'Invalid params for method "uploadListingImage": Invalid data param type "image" (15.1.jpg;type=image/jpeg: string): required type "imagefile"
Note: my image path is the same of the script.
Thanks.