Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How must I do Auth? #1

Open
bvn13 opened this issue Jun 12, 2016 · 1 comment
Open

How must I do Auth? #1

bvn13 opened this issue Jun 12, 2016 · 1 comment

Comments

@bvn13
Copy link

bvn13 commented Jun 12, 2016

You've written:

// initialization and authorisation (VK.init , VK.Auth.login)

How must I import VK?

@ZigGreen
Copy link
Owner

It's up to you.
In the example: ApiQueue requires function for api calls as third parameter.
It's doesn't care about what implementation you've passed as long as it correspond to standard vkapi function signature (i.e. function api(methodName, params, callback)).
In other words, in client you easily go through authorization process as described in docs and when you've succeeded you pass VK.Api.call to ApiQueue as function for api calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants