https://github.com/rorkh/vklib-turbo
vklib (https://github.com/LuaFan2/vklib) implementation for turbo (https://github.com/kernelsauce/turbo)
https://github.com/rorkh/vklib-turbo
Last synced: 2 months ago
JSON representation
vklib (https://github.com/LuaFan2/vklib) implementation for turbo (https://github.com/kernelsauce/turbo)
- Host: GitHub
- URL: https://github.com/rorkh/vklib-turbo
- Owner: Rorkh
- Created: 2021-06-19T17:55:24.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-20T18:03:24.000Z (almost 4 years ago)
- Last Synced: 2025-02-12T21:36:45.331Z (4 months ago)
- Language: Lua
- Size: 12.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vklib-turbo
vklib (https://github.com/LuaFan2/vklib) implementation for turbo (https://github.com/kernelsauce/turbo)
## Examples
## Simple example
```lua
local vk = require("vklib")
local api = vk:Session(token)api.groups.isMember{group_id = 1, user_id = 1}:cb(function(res)
print(res.response)
end)
```
```
Output:
0
```
## Example with options
```lua
local vk = require("vklib")
local api = vk:Session(token, {raw = true, version = 5.42})api.groups.isMember{group_id = 1, user_id = 1}:cb(function(res)
print(res)
end)
```
```
Output:
{"response":0}
```