Fix readme.md (fix package name)

This commit is contained in:
Nikiroy78 2023-07-12 12:52:03 +03:00
parent 82813ceb71
commit 1f60fe8305
2 changed files with 32 additions and 5 deletions

View File

@ -1,5 +1,32 @@
{ {
"dependencies": { "dependencies": {
"sync-request": "^6.1.0" "sync-request": "^6.1.0"
} },
"name": "vk_api",
"description": "**installation:**\r ```bash\r npm i vk_api\r ```\r ## How to use",
"version": "0.0.1",
"main": "index.js",
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Nikiroy78/npm-vk-api-sync.git"
},
"keywords": [
"vk_api",
"vkApi",
"requests",
"API",
"vk",
"vkontakte",
"sync"
],
"author": "FullGreaM",
"license": "ISC",
"bugs": {
"url": "https://github.com/Nikiroy78/npm-vk-api-sync/issues"
},
"homepage": "https://github.com/Nikiroy78/npm-vk-api-sync#readme"
} }

View File

@ -2,7 +2,7 @@
**installation:** **installation:**
```bash ```bash
npm i vk_api npm i vk-api-sync
``` ```
## How to use ## How to use
@ -10,7 +10,7 @@ npm i vk_api
You can logged in with use login and password: You can logged in with use login and password:
```node ```node
const vkApi = require('vk_api'); const vkApi = require('vk-api-sync');
const vk = new vkApi.VkApi({ const vk = new vkApi.VkApi({
login : '+78005553535', login : '+78005553535',
password : 'qwerty123' password : 'qwerty123'
@ -18,7 +18,7 @@ const vk = new vkApi.VkApi({
``` ```
or with use access_token or with use access_token
```node ```node
const vkApi = require('vk_api'); const vkApi = require('vk-api-sync');
const vk = new vkApi.VkApi({ const vk = new vkApi.VkApi({
access_token : "ACCESS_TOKEN_STRING" access_token : "ACCESS_TOKEN_STRING"
}); });
@ -26,7 +26,7 @@ const vk = new vkApi.VkApi({
**Additional parametrs** **Additional parametrs**
In constructor you can edit **api_version**, **api_server** and **oauth_server**: In constructor you can edit **api_version**, **api_server** and **oauth_server**:
```node ```node
const vkApi = require('vk_api'); const vkApi = require('vk-api-sync');
const authOptions = { /* Another auth params */ }; const authOptions = { /* Another auth params */ };
const API_VERSION = "5.75"; const API_VERSION = "5.75";