Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@ns8/magento2-rest-client
Advanced tools
Readme
This Node.js library enables JavaScript applications to communicate with Magento2 sites using their REST API.
This module based on magento2-rest-client, which is in turn based on the magento2-rest-client
module created by Marko Novak (2016).
This module is used by the NS8 Protect Magento extension. It is safe for production use, but NOTE: the library is not finished yet! Only a subset of Magento2 API is currently implemented. Not all methods are fully documented, and not all return types are fully typed.
The library can be installed using the Npm package manager:
yarn add @ns8/magento2-rest-client
The code sample below shows the usage of the library:
import { RestClient } from '@ns8/magento2-rest-client';
const options = {
url: 'http://www.test.com/index.php/rest',
consumerKey: '<OAuth 1.0a consumer key>',
consumerSecret: '<OAuth 1.0a consumer secret>',
accessToken: '<OAuth 1.0a access token>',
accessTokenSecret: '<OAuth 1.0a access token secret>'
};
const client = new RestClient(options);
client.categories.list().then( (categories) => {
assert.equal(categories.parentId, 1);
});
TODO: Allow extending the API by adding your own modules or adding methods to the existing modules!
Create issues or submit PRs to extend existing API support or add new functionality. All contributions are welcome.
FAQs
REST client for accessing Magento 2 functionality.
The npm package @ns8/magento2-rest-client receives a total of 21 weekly downloads. As such, @ns8/magento2-rest-client popularity was classified as not popular.
We found that @ns8/magento2-rest-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 27 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.