Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antonio-antuan/vk-auth
https://github.com/antonio-antuan/vk-auth
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/antonio-antuan/vk-auth
- Owner: antonio-antuan
- License: mit
- Created: 2021-06-24T15:34:52.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-06-24T16:42:39.000Z (over 3 years ago)
- Last Synced: 2024-11-15T22:38:24.038Z (about 2 months ago)
- Language: Rust
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vk-auth.
Crate allows you to retrieve access token to API with just phone/email, password and app_id. For usage example see `examples/main.rs`.
## Example
```
➜ vk_auth git:(master) ✗ APP_ID=YOUR_APP_ID EMAIL=YOUR_PHONE_OR_EMAIL PASSWORD=PASSWORD cargo run --example main
Compiling vk-auth v0.1.0 (/home/anton/Projects/vk_auth)
Finished dev [unoptimized + debuginfo] target(s) in 3.00s
Running `target/debug/examples/main`
AccessToken { access_token: "token", expires_in: 86400s, user_id: "user_id" }
```