'How to Upload Products Image in zoho Inventory using postman
This code is working fine to uopload image in Zoho Inventory
*You can Used this code to upload image in zoho inventory.
- Item id*
- authtoken*
- organization_id*
PHP Curl code
'https://inventory.zoho.com/api/v1/items//image?authtoken=xxxxxxx&organization_id=xxxxxxx', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS => array('image'=> new CURLFILE('/C:/Users/shobh/OneDrive/Pictures/WE\'RE HIRING (1).png')), CURLOPT_HTTPHEADER => array( 'Authorization: Zoho-oauthtoken xxxxxxxxx', 'Cookie: xxxxxxx' ), )); $response = curl_exec($curl); curl_close($curl); echo $response; *Response* [enter image description here][1] [1]: https://i.stack.imgur.com/jsKoV.pngSources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
