
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
medium-wrapi
Advanced tools
Client interface for accessing Medium API.
Create a client object to connect to Medium API endpoints.
var mediumWrapi = require('medium-wrapi');
var client = new mediumWrapi("v1", API_BEARER_TOKEN));
// Now you are ready to make API calls to medium.
Provide parameters and a callback.
API calls follow this syntax:
client.action(param1, ..., callback);
param
- (as required) url parameters - eg: For publications the value for {{userId}}
.client.user(function(err, data) {
if (!err) {
console.log(data);
}
});
client.publications("5303d74c64f66366f00cb9b2a94f3251bf5",
function(err, data) {
if (!err) {
console.log(data);
}
}
);
client.contributors("b45573563f5a", function(err, data) {
if (!err) {
console.log(data);
}
});
client.posts("5303d74c64f66366f00cb9b2a94f3251bf5",
{
"title": "Liverpool FC",
"contentFormat": "html",
"content": "<h1>Liverpool FC</h1><p>You’ll never walk alone.</p>",
"canonicalUrl": "http://jamietalbot.com/posts/liverpool-fc",
"tags": ["football", "sport", "Liverpool"],
"publishStatus": "public"
},
function(err, data) {
if (!err) {
console.log(data);
}
}
);
client.publication.post("b45573563f5a",
{
"title": "Hard things in software development",
"contentFormat": "html",
"content": "<p>Cache invalidation</p><p>Naming things</p>",
"tags": ["development", "design"],
"publishStatus": "draft"
},
function(err, data) {
if (!err) {
console.log(data);
}
}
);
client.images(
{
formData: {
custom_file: {
value: fs.createReadStream('/path/to/myimage.png'),
options: {
filename: 'lenticular.png',
contentType: 'image/png'
}
}
}
},
function(err, data) {
if (!err) {
console.log(data);
}
}
);
FAQs
Wrapper for Medium REST API
We found that medium-wrapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.