📜 ⬆️ ⬇️

VKontakte API for .Net

image
Good afternoon friends!

I want to tell you about my small open source project, namely the implementation of the VKontakte API for .Net. In total, I saw him for a year and a half. Not everything has been done yet, and what has been done under the cut.

A complete list of implemented methods can be found in the documentation . In short, almost all methods from the following categories:

A small example of how to work with it. For example, let's try to send a “hello, friend!” Message to users from the Habrahabr community (checks removed). This example is shown only to demonstrate the work of the library.
static void Main(string[] args) { int appId = 1234567; //  id  string email = "example@example.ru"; // email   string password = "qwerty123"; //  Settings settings = Settings.All; //     var api = new VkApi(); api.Authorize(appId, email, password, settings); //  var group = api.Utils.ResolveScreenName("habr"); //  id     habr //  id   , . -  = 1000 int totalCount; //  -  var userIds = api.Groups.GetMembers(group.Id.Value, out totalCount); foreach (long id in userIds) { api.Messages.Send(id, false, ", !"); //    } }} 


You can download from the project site or download via Nuget .
')
image

PS Many methods are not yet implemented and if you want to participate in the project or found errors, then let me know about it through the site .

Source: https://habr.com/ru/post/216553/


All Articles