VK API Angular
VK Open API wrapper for AngularJS.
- Supports VK API methods via AngularJS service.
- Supports VK widgets via AngularJS directives.
- Replaces callbacks with promises.
VK API (service)
You may initialize your VK application using the provider during the configuration phase:
angular ;
VKApi factory duplicates the official VK Open API method naming, in particular:
VKApi.Api.call
VKApi.Auth.login
VKApi.Auth.logout
VKApi.Auth.revokeGrants
VKApi.Auth.getLoginStatus
VKApi.Auth.getSession
However, the promises are used instead of callbacks. This gives a better control over the success/error handling mechanism.
// Log in and request the "photos" and "video" permissions.// See https://vk.com/dev/permissions for the full permission list. VKApiAuth;
// Call "users.get" API method.// See https://vk.com/dev/methods for the full method list. VKApiApi;
VK Widgets (directives)
VK Allow Messages From Community Widget
VK Auth Widget
VK Comments Widget
VK Community Widget
VK Community Messages Widget
VK Contact Us Widget
VK Like Widget
VK Poll Widget
VK Post Widget
VK Recommended Widget
VK Share Widget
VK Subscribe Widget