![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
vk-api-sync
Advanced tools
installation:
npm i vk-api-sync
You can logged in with use login and password:
const vkApi = require('vk-api-sync');
const vk = new vkApi.VkApi({
login : '+78005553535',
password : 'qwerty123'
});
or with use access_token
const vkApi = require('vk-api-sync');
const vk = new vkApi.VkApi({
access_token : "ACCESS_TOKEN_STRING"
});
Additional parametrs
In constructor you can edit api_version, api_server and oauth_server:
const vkApi = require('vk-api-sync');
const authOptions = { /* Another auth params */ };
const API_VERSION = "5.75";
const API_SERVER = "https://api.vk.com/";
const OAUTH_SERVER = "http://oauth.vk.com/";
const vk = new vkApi.VkApi(
authOptions,
API_VERSION,
API_SERVER,
OAUTH_SERVER
);
You can use method api for call api methods.
const userObject = vk.api("users.get", {
user_ids : [1].join(",")
}); // [{ id : 1, first_name : "Pavel", last_name : "Durov" }]
You can use method exec for call api method Execute.
const vkScript = `var userObject = API.users.get({"user_ids":[1]});
return userObject[0];`;
const userObject = vk.exec(vkScript); // { id : 1, first_name : "Pavel", last_name : "Durov" }
And you can use additional tool for upload doc into server. Use method uploadDoc (method at beta-develop)
const fs = require('fs');
const filename = "picture.png";
const mimetype = "image/png";
const content = fs.readFileSync(`/path/to/${filename}`);
const peer_id = 42; // The Ultimate Question of Life, the Universe, and Everything :)
const userObject = vk.uploadDoc(filename, content, mimetype, peer_id); // Content from method 'docs.save'
FAQs
**installation:** ```bash npm i vk-api-sync ``` ## How to use
We found that vk-api-sync demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.