PhotoUploader
Class Api Work with VK API through http requsts
Table of Contents
Constants
- TYPE_ALBUM_PHOTO = 'ALBUM_PHOTO'
- TYPE_PRODUCT_MAIN_PHOTO = 'PRODUCT_MAIN_PHOTO'
- TYPE_PRODUCT_PHOTOS = 'PRODUCT_PHOTOS'
Methods
- __construct() : mixed
- upload() : array<string|int, mixed>
- Check photo size, get upload server, upload photo and save them
Constants
TYPE_ALBUM_PHOTO
public
mixed
TYPE_ALBUM_PHOTO
= 'ALBUM_PHOTO'
TYPE_PRODUCT_MAIN_PHOTO
public
mixed
TYPE_PRODUCT_MAIN_PHOTO
= 'PRODUCT_MAIN_PHOTO'
TYPE_PRODUCT_PHOTOS
public
mixed
TYPE_PRODUCT_PHOTOS
= 'PRODUCT_PHOTOS'
Methods
__construct()
public
__construct(mixed $exportId, mixed $photoType[, Timer $timer = null ]) : mixed
Parameters
- $exportId : mixed
- $photoType : mixed
- $timer : Timer = null
upload()
Check photo size, get upload server, upload photo and save them
public
upload(mixed $data) : array<string|int, mixed>
Parameters
- $data : mixed
Tags
Return values
array<string|int, mixed> —- array of save photos results