Skip to content

Rorkh/vklib-turbo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vklib-turbo

vklib (https://github.com/LuaFan2/vklib) implementation for turbo (https://github.com/kernelsauce/turbo)

Examples

Simple example

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

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}

Releases

No releases published

Packages

No packages published

Languages