Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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).