Yesterday (or even earlier), unexpectedly (at least for me) I received a
link to Twitter. Passing through it, I was surprised - instead of correcting a stupid bug with a black list of opinions, Pavel Durov and his companions decided to make a platform.
So, meet - Flash applications and API VKontakte!
Let's start with what is already there. There are already 200 pages of applications written in Flash (because it cannot be done on anything else), most of which are seemingly idiotic, for example, a “WELDER'S CHAT! FUN AND FUN !!!)))) ”- well, on the other hand, what else can we expect. You can “add” a couple of applications to your page, but the flash drive doesn’t appear, and only the section at the bottom will appear with a link - i.e., it’s not that if you go to someone’s page from the headphones, idiotic music or even worse. On the other hand, the fact that applications are written in Flash and are not obliged to do anything special, such as special API calls, will allow young programmers to tyrit applications without making any effort - well, so, in fact, it happened, it is hard to believe that all 200 pages are written from scratch.
Now about the technical side of things.
The API is already quite web-vanal (why already? Because I haven’t found microformats there, nor even microformats. To be honest, I don’t feel sorry for the server) that provides information in XML or JSON - just like we used to .
Your application in the variables
api_id ,
viewer_id ,
user_id and
group_id will be passed, respectively, the unique application id, the member id viewing it, the user id who added the application to the page from which the application
host id was included.
What can API do? The API is able, first of all, to write and read variables by numbers. The scope of the variable depends on the number, for example, if the number is less than 1024, then the variable will be read / write accessible to all such applications.
')
All other API functions are based on reading and writing variables, incl. reserved. For example, there are functions for building a table of records or organizing a “simple cyclic message queue”.
For an example, two source codes of ready applications are laid out:
chat and
Tetris .
API full descriptionAvailable applications