Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/likecoin/likecoin-button-sdk
SDK for integrating LikeCoin button
https://github.com/likecoin/likecoin-button-sdk
Last synced: 2 days ago
JSON representation
SDK for integrating LikeCoin button
- Host: GitHub
- URL: https://github.com/likecoin/likecoin-button-sdk
- Owner: likecoin
- Created: 2020-02-12T08:31:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T16:16:03.000Z (over 1 year ago)
- Last Synced: 2024-05-07T12:02:57.681Z (6 months ago)
- Language: JavaScript
- Homepage: https://static.like.co/sdk/v1/button.js
- Size: 613 KB
- Stars: 5
- Watchers: 7
- Forks: 5
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# LikeCoin button SDK
This is a script for embeding [LikeCoin button](https://like.co/in/creator) into webpages.
## What is LikeCoin button?
For introduction ot LikeCoin button, please refer to [user guide](https://docs.like.co/user-guide/likecoin-button) here.## Usage
1. Add the following `div` tag into the webpage at the position for embedding LikeCoin button:
`
`Here, `data-liker-id` is required and refers to your LikeCoin ID, where `data-href` is optional and refers to your page's canonical URL. If omitted, the SDK will use the current URL of the browser.
2. Add the following `script` tag at the end of the `body` tag:
``
See `dist/index.html` as an example.
## Build
1. `npm install`
2. `npm run build`## Reference
Please refer to our [developer guide](https://docs.like.co/developer/likecoin-button).