C
C
CosmeticsBY2016-02-19 22:48:41
In contact with
CosmeticsBY, 2016-02-19 22:48:41

Why are crop_data and crop_hash not returned by VK API?

2. The application generates a POST request to the received address.
The request must contain the file field, which contains the image file (JPG, PNG, or GIF).
For the main photo, the application receives the following data in JSON format in response:

{"server":625831,"photo":"[{\"photo\":\"8d81799f90:w\",\"sizes\":}]", "hash":"8954a4da5ba06d4e","crop_data":"oAAmMpwAAAAAlTWyjA","crop_hash":"729155760247b391134"}

I have the last parameter that is returned - hash. crop_data and crop_hash are not returned. Why?
$post_data = array (
'group_id' => '999999999',
'file' => '@./xxx.jpg',
'main_photo' => 1,
'crop_x'=>'1',
'crop_y'=>' 1',
'crop_width'=>'400',
'version'=>'5.45',
'access_token' => $token['access_token']
);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CosmeticsBY, 2016-02-20
@CosmeticsBY

Thank you for not disregarding, but the last returned hash parameter did not work anyway. Yes, and the developer wrote in the release that you can add a product (respectively, an image on it, otherwise you won’t add a product) from all 3 types of applications

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question