Download the PHP package subb98/vk-publisher without Composer
On this page you can find all versions of the php package subb98/vk-publisher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package vk-publisher
VK Publisher
PHP library for auto-sending (crossposting) messages to VKontakte wall
Features
- Send a message or attachment (or all together) to the wall
- Upload photo (external or local) to album
Requirements
- PHP 7.1 or above
- cURL extension
- JSON extension
Installation
Usage
Getting access_token
For one step
- Getting access_token
- Request example:
https://oauth.vk.com/authorize?client_id=1234567&display=page&redirect_uri=&scope=photos,wall,groups,offline&response_type=token&v=5.103
- Response example:
https://oauth.vk.com/blank.html#access_token=fe8c3650bdf7ad7185598c5a32c43a4e8d38bf1135e7d7920fdafd5dc5615949ba3fc7b461d6fd120b97f&expires_in=0&user_id=89012345
- Request example:
Or for two steps
-
Getting the code to get access_token
- Request example:
https://oauth.vk.com/authorize?client_id=1234567&display=page&redirect_uri=&scope=photos,wall,groups,offline&response_type=code&v=5.103
- Response example:
https://oauth.vk.com/blank.html#code=3b2a554d20bd48c360
- Request example:
- Getting access_token
- Request example:
https://oauth.vk.com/access_token?client_id=1234567&client_secret=9Wnk7UcEpeFAHhJYyyJg&redirect_uri=&code=3b2a554d20bd48c360
- Response example:
{"access_token":"fe8c3650bdf7ad7185598c5a32c43a4e8d38bf1135e7d7920fdafd5dc5615949ba3fc7b461d6fd120b97f","expires_in":0,"user_id":89012345}
- Request example:
Note: don't use scope=offline
if you fear access_token is may be compromised.
See more: Getting access token
Sending a message to the wall
Without photo
With photo(s)
License
All versions of vk-publisher with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
ext-curl Version *
ext-json Version *
ext-curl Version *
ext-json Version *
The package subb98/vk-publisher contains the following files
Loading the files please wait ....