Skip to content
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.

Commit

Permalink
add new apis and replace promise polypill library
Browse files Browse the repository at this point in the history
  • Loading branch information
shoito committed Aug 30, 2014
1 parent 21c9e02 commit 3e5ac4d
Show file tree
Hide file tree
Showing 6 changed files with 200 additions and 51 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
JavaScript library for Typetalk
JavaScript client library for Typetalk
======================

[typetalk-js](https://github.com/shoito/typetalk-js) aims to provide a complete, asynchronous client library for the [Typetalk API](http://developers.typetalk.in/api.html).
Expand All @@ -24,7 +24,7 @@ Support Promises

Use a polyfill script tag:

<script src="https://www.promisejs.org/polyfills/promise-4.0.0.js"></script>
<script src="https://www.promisejs.org/polyfills/promise-5.0.0.min.js"></script>

The global variable Promise becomes available after the above script tag.

Expand All @@ -46,7 +46,7 @@ and then include it in your pages with `<script src="typetalk.min.js"></script>`

See also

- [Typetalk for Developers](http://developers.typetalk.in/index.html)
- [Typetalk for Developers](https://developer.nulab-inc.com/docs/typetalk)
- [typetalk-js API documentation](http://shoito.github.io/typetalk-js/Typetalk.html)

### Setup (Client Credentials as Grant Type)
Expand All @@ -56,7 +56,7 @@ See also
var typetalk = new Typetalk({
'client_id': 'YOUR_CLIENT_ID__CLIENT_CREDENTIALS',
'client_secret': 'YOUR_CLIENT_SECRET__CLIENT_CREDENTIALS',
'scope': 'topic.read,topic.post,my'
'scope': 'topic.read,topic.post,topic.write,topic.delete,my'
});

### Setup (Authorization Code as Grant Type)
Expand All @@ -65,7 +65,7 @@ See also
'client_id': 'YOUR_CLIENT_ID__AUTHORIZATION_CODE',
'client_secret': 'YOUR_CLIENT_SECRET__AUTHORIZATION_CODE',
'redirect_uri': 'https://YOUR_APP_DOMAIN/provider_cb',
'scope': 'topic.read,topic.post,my'
'scope': 'topic.read,topic.post,topic.write,topic.delete,my'
});

### Get access token using client credentials
Expand Down Expand Up @@ -102,7 +102,7 @@ See also
## See also

- [Typetalk](http://www.typetalk.in)
- [Typetalk for Developers](http://developers.typetalk.in/)
- [Typetalk for Developers](https://developer.nulab-inc.com/docs/typetalk/)
- [JavaScript Promises: There and Back Again](http://www.html5rocks.com/en/tutorials/es6/promises/)
- [Promise](https://www.promisejs.org/)

Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typetalk-js",
"version": "0.1.3",
"version": "0.2.0",
"main": "typetalk.js",
"ignore": [
"**/.*",
Expand All @@ -19,6 +19,6 @@
"dependencies": {
},
"devDependencies": {
"bluebird": "~1.2.4"
"promise": "~5.0.0"
}
}
2 changes: 1 addition & 1 deletion example/client.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Setup
// npm install typetalk-js --save
var Promise = require('bluebird'),
var Promise = require('promise'),
Typetalk = require('typetalk-js');

var typetalk = new Typetalk({
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "typetalk-js",
"title": "typetalk-js",
"description": "JavaScript library for Typetalk",
"version": "0.1.3",
"version": "0.2.0",
"main": "typetalk.js",
"homepage": "https://github.com/shoito/typetalk-js",
"author": {
Expand Down Expand Up @@ -30,18 +30,18 @@
}
],
"dependencies": {
"bluebird": "~1.2.4",
"promise": "~5.0.0",
"xmlhttprequest": "~1.6.0"
},
"devDependencies": {
"grunt": "~0.4.4",
"grunt-contrib-clean": "~0.5.0",
"grunt-jsdoc": "~0.5.4",
"grunt": "~0.4.5",
"grunt-contrib-clean": "~0.6.0",
"grunt-jsdoc": "~0.5.7",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-uglify": "~0.4.0",
"load-grunt-tasks": "~0.4.0",
"grunt-contrib-uglify": "~0.5.1",
"load-grunt-tasks": "~0.6.0",
"matchdep": "~0.3.0",
"jsdoc": "~3.2.2"
"jsdoc": "~3.3.0-alpha9"
},
"scripts": {
"build": "npm install && grunt",
Expand Down
Loading

0 comments on commit 3e5ac4d

Please sign in to comment.