adlinkfly
v0.2.1
Published
AdLinkFly API wrapper for Node.js
Downloads
532
Maintainers
Readme
Compatible platforms
- Shrtfly: https://shrtfly.com/
- Exe.io: https://exe.io/
- ClicksFly: https://clicksfly.com/
- EncurtaNet: https://encurtanet.com/
- ShrinkMe: https://shrinkme.io/
- ShrinkEarn: https://shrinkearn.com/
- ClkSh: https://clk.sh/
- ShrtBr: https://shrtbr.com/
- LinkMonetizado: https://linkmonetizado.com/
- LinkAds: https://linkads.net/
Donate
Install
npm i adlinkflySimple use example
import { AdLinkFly, BaseUrl } from "adlinkfly"
(async () => {
const shortener = new AdLinkFly({
apiToken: "YOUR_API_TOKEN_HERE",
baseUrl: "PLATFORM_BASE_URL_HERE" // Some may require a "/" at the end, for example: https://encurtanet.com/api/
// baseUrl: BaseUrl.ShrtFly // or you can use the enum BaseUrl
})
const urlInfo = await shortener.shorten({
url: "https://marcuth.github.io/", // Your url
alias: "url-alias", // Alias of the url
isTextFormat: false, // If response is text format
adsType: 0 // Ads type, check the types in the documentation of the chosen platform
})
const shortenedUrl = urlInfo.shortedUrl
console.log(shortenedUrl)
})()
🤝 Contributing
- Want to contribute? Follow these steps:
- Fork the repository.
- Create a new branch (git checkout -b feature-new).
- Commit your changes (git commit -m 'Add new feature').
- Push to the branch (git push origin feature-new).
- Open a Pull Request.
📝 License
This project is licensed under the MIT License.
