N
N
Nikolai Antonov2016-09-11 17:56:15
JavaScript
Nikolai Antonov, 2016-09-11 17:56:15

What is the difference between openapi and Javascript SDK for vk.com?

I want to create an application in react native, with music from vk. And I just can not figure out how to pull data from the site. For now, I'm developing with React Native for Web , since the emulator is not as fast as the browser.
Which authorization method should I choose? In office documentation writes a link to the javascript SDK. In the tutorial on working with vk api for 2016, there is a link to openapi.js. There are also a bunch of npm modules for working with vk api. How to understand which one to use for what purpose?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
littleguga, 2016-09-13
@my-nickname

JS SDK or Open API are not suitable for your task, they are for websites.
Normal work with audio is only available for Desktop applications. (that is, which authorize the user in this way). In fact, you need to show the built-in web-view, follow the redirect and parse the url. (there will be a token)
Write your own library or look for ready-made vk-node-api.
I would advise you to file mine and upload it to github, because those that are googled look very dead.

A
Alex, 2016-09-11
@Kozack

Open API is a system for developers of third-party sites that provides the ability to easily authorize VKontakte users on your site
To simplify working with the API and interacting with the VKontakte interface in IFrame applications, use the Javascript SDK.

R
Rou1997, 2016-09-11
@Rou1997

Physically the same, but structurally the Open API is a REST API, and the JavaScript SDK is a JavaScript wrapper for the Open API.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question