Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.21 KB

README.md

File metadata and controls

47 lines (31 loc) · 1.21 KB

Erlang Vk API

Erlang Vkontakte API implementation.

Usage

First of all create Vk auth_token

https://oauth.vk.com/authorize?client_id=6460040&display=page&scope=friends,notify,photos,audio,video,messages,wall,offline,groups,docs&response_type=token&v=5.74

And add it to includes/vkapi.hrl, then

$ ./rebar3 tree  # Download deps
$ ./rebar3 compile # Compile project
$ ./rebar3 shell

In shell

1> Response = vkapi:request("wall.get",[{"owner_id","1"}]).
2> vkapi:get_all_wall_photos(Response).

or just

1> vkapi:request("wall.get",[{"owner_id","1"}]).

First argument - method. Second - parameters in format [{"Key","Value"},{"Key","Value"},{"Key","Value"}]

Vk API Methods

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

  • Vadim Romaniuk - Initial work - glicOne

See also the list of contributors who participated in this project.

License

This project is licensed under the GPL-3.0 License - see the LICENSE.md file for details.