Skip to content

Instantly share code, notes, and snippets.

@Kikobeats
Created July 10, 2018 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kikobeats/91db3b04e1c328c3c5b7bc404441d265 to your computer and use it in GitHub Desktop.
Save Kikobeats/91db3b04e1c328c3c5b7bc404441d265 to your computer and use it in GitHub Desktop.
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