HypeSpark Sharing Basics
The simpilest way to interface with HypeSpark is to link to us from your website. Linking is easy. Simply use the following code:
| Parameter | Description | |
|---|---|---|
| 1 | The url you wish to share on HypeSpark | Required |
| ot | The ID of a specific Offer that you would like the user to share | Optional |
Javascript API
HypeSpark provides a simple javascript API for interfacing with HypeSpark.com. The first thing you need to do is include the HypeSpark Javascript API by placing this code into the header of your site:
Code:Once you have done this you may use the following functions to interface with HypeSpark
DrawLink
This function draws a link to that allows the user to share a link on HypeSpark.
Code:There are several options that can passed in that will modify the links behavior
| Option | Description | Default |
|---|---|---|
| ShareUrl | The url you wish to share on HypeSpark | The url of the page the script is called from |
| Body | The body of the ancor tag | The HypeSpark logo |
| OfferTierId | The ID of a specific Offer that you would like the user to share | null - This will use the users currently sellected Offer |
Below is an example using the options
Code:

