clay-sdk-base
Clay.io SDK Base is a subset of the Clay.io SDK
Last updated 5 years ago by zolmeister .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install clay-sdk-base 
SYNC missed versions from official npm registry.

WARNING: WILL BE DEPRECATED MAY 2, 2015

Use Clay.io SDK instead

Clay.io SDK Base

Clay.io SDK Base is a subset of the Clay.io SDK

Install

Add to the top of <body>

<script>
(function(C,l,a,y,_,i,o){C[_]=C[_]||function(){
(C[_].q=C[_].q||[]).push(arguments)},C[_].l=1*new Date();i=l.createElement(a),
o=l.getElementsByTagName(a)[0];i.async=1;i.src=y;o.parentNode.insertBefore(i,o)
})(window,document,'script','//cdn.wtf/sdk/v1/clay_sdk_base.js','Clay');

Clay('init', {gameId: 0000})
</script>

Example

Clay('init', {gameId: 0000})

Clay('client.share.any', {text: 'Come play a game with me!'})

Usage

Init
Clay('init', {gameId: 0000})
Share Any

Share a message using the best available option.
See Clay.io SDK docs for details.

Clay('client.share.any', {text: 'Hello World'})
Version
Clay('version', function (err, version) {
  console.log(version);
})

Contributing

Install pre-commit hook

ln -s ../../pre-commit.sh .git/hooks/pre-commit

npm install
npm test

Current Tags

  • 1.1.3                                ...           latest (5 years ago)

12 Versions

  • 1.1.3                                ...           5 years ago
  • 1.1.2                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.6                                ...           5 years ago
  • 1.0.5                                ...           5 years ago
  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 0.0.7                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (27)

Copyright 2014 - 2016 © taobao.org |