R
R
Roman2018-08-01 21:57:00
ruby
Roman, 2018-08-01 21:57:00

How to configure api vk vk-ruby?

Guys help me set up api vk through vk-ruby.
I'm trying to do it like this:

require "vk-ruby"
app_id = 664921213134
secret_token = "IHi***********Mu"
access_token = '9eb9ef6d469aec89c2edd6*******************dc1266e233f9c0f10854fe975add9aa188e0decc9a1b89'
x = VK::server_auth(app_id: app_id, app_secret: secret_token)

gives an error message
description='Application authorization failed: access_token has expired.' (VK::APIError)

Maybe someone has a ready-made script example how to do it right

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question