Created
July 10, 2018 21:16
-
-
Save Kikobeats/91db3b04e1c328c3c5b7bc404441d265 to your computer and use it in GitHub Desktop.
Microlink API connector
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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