navershare
v2.0.1
Published
Simple Naver Share API (And Twitter Web Intent)
Downloads
1
Readme
Naver Share URL Generator
Generate NAVER Share url from NAVER Developer API. More infomation can be found at NAVER Developers.
Usage
1
const share_url = require('navershare').share(
"http://npmjs.com", // URL to share
"npm URL" // Title, Optional
)
// returns Share URL
2
require('navershare').share("http://npmjs.com", "npm URL", (url) => {
console.log(url)
// Callback
})
Without title:
require('navershare').share("http://npmjs.com", null, (url) => {
console.log(url)
// Callback
})
Another Share
We support Twitter too!
require('navershare').another.twitter(
"navershare is awesome!",
"https://www.npmjs.com/package/navershare",
"@Basix1120"
)
// returns Share URL
Callback are supported.
require('navershare').another.twitter(..., (e) => {
console.log(e)
})
GitHub
Please Note
- On Thu Mar 31 10:19:00 UTC 2016, NAVER Share API is buggy now.