Skip to content

Instantly share code, notes, and snippets.

@Kikobeats
Created Jul 10, 2018
Embed
What would you like to do?
Microlink API connector
'use strict'
const microlink = require('microlink-api')
const url = 'https://google.com'
const doRequest = microlink.createRule($ => {
// do whatever you want here
return {
title: $('h1'),
}
})
const data = await doRequest(url)
console.log(data);
// {
// "status": "success"
// "data": {
// title: 'my custom rule title'
// }
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment