Skip to content

dc914337/kasthack.vksharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kasthack.vksharp

Nuget Build status License Join the chat at https://gitter.im/kasthack/VKSharp

Installation

Install-Package kasthack.vksharp

Docs

Supported platforms

  • .NET
    • 4.0
    • 4.5
    • 4.6
  • Mono
    • Anything 4.0+ compatible. I've used 4.2 successfully.
  • Xamarin
    • 4.* profile. PCL is not supported yet. Use shared project if you are building a cross-platform forms app.

Usage

  1. Register app at https://vk.com/editapp?act=create

  2. Get OAuth authorize uri

    var redirect_uri = Token.GetOAuthURL(
        APP_ID,     // APP ID: shown on app's properties page
        PERMISSIONS // Permissions: VKPermission.*, something like VKPermission.Offline | VKPermission.Photos
    );
  3. Show authorization page to user.

  4. Build token from redirect uri.

    var token = Token.FromRedirectUrl( REDIRECT_URL );
  5. Use token

    var api = new Api();
    api.AddToken(token);
  6. Execure requests

    var users = await api.Users.Get(1);
  7. ???

  8. Profit

Implemented methods

Lurk here

Contributing

Contributing guide(in Russian)

Packages

No packages published

Languages

  • C# 99.9%
  • Other 0.1%