Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/labi-le/vk-data-fetcher
Data fetcher for bots vkontakte
https://github.com/labi-le/vk-data-fetcher
astaroth-package data-fetcher vk-api-schema vk-callback-api vk-longpoll
Last synced: about 1 month ago
JSON representation
Data fetcher for bots vkontakte
- Host: GitHub
- URL: https://github.com/labi-le/vk-data-fetcher
- Owner: labi-le
- License: gpl-3.0
- Created: 2021-06-06T19:05:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-09T13:59:26.000Z (7 months ago)
- Last Synced: 2024-08-12T11:43:51.827Z (3 months ago)
- Topics: astaroth-package, data-fetcher, vk-api-schema, vk-callback-api, vk-longpoll
- Language: PHP
- Homepage:
- Size: 53.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vk-data-fetcher
[![GitHub license](https://img.shields.io/badge/license-BSD-green.svg)](https://github.com/labi-le/vk-data-fetcher/blob/main/LICENSE)
[![Packagist Stars](https://img.shields.io/packagist/stars/labile/vk-data-fetcher)](https://packagist.org/packages/labile/vk-data-fetcher/stats)
[![Packagist Stats](https://img.shields.io/packagist/dt/labile/vk-data-fetcher)](https://packagist.org/packages/labile/vk-data-fetcher/stats)[Документация на русском языке](https://github.com/labi-le/vk-data-fetcher/blob/main/README_RU.md)
## Installation
`composer require labile/vk-data-fetcher`
### Data fetcher for bots vkontakte
```php
getRawData();
//$raw_data->...if ($data->getType() === "message_new"){
$message_new = $data->messageNew();
$message_new->getText();
$message_new->getAttachments();
$message_new->getFromId();
$message_new->getPayload();
//...
}if ($data->getType() === "message_event"){
$message_event = $data->messageEvent();$message_event->getConversationMessageId();
$message_event->getPeerId();
$message_event->getEventId();
$message_event->getChatId();
//...
}```