0.0.4 • Published 2 years ago

efficientlinks v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Efficient Links

Efficient Links is a cost-effective link analysis tools. This is a convenience wrapper for the Efficient Links GraphQL API.

First, import the library:

const client = require('efficientlinks');

Then, authenticate using your API key:

client.setKey(API_KEY);

Then, perform the actions you wish.

Get a link preview

To get a preview of a link, use:

const linkPreview = await client.getLinkPreview(url);
console.log('linkPreview', linkPreview);

Assess a link for spam

To get an assessment of the spamminess of a link, use:

const spamScore = await client.getLinkSpam(url,
{userMessage,
userId,
userEmailDomain,
userRegistrationDate,
title,
description});
console.log('Spam Score', spamScore);
0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago