Skip to content

Commit

Permalink
Merge pull request #2 from milk-cocoa/issue-1
Browse files Browse the repository at this point in the history
Fixed apikey #1
  • Loading branch information
syuhei176 authored Dec 13, 2016
2 parents 9bc04ee + a788aef commit f129c7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ if(!argv.app_id) throw new Error('--app_id app_id required.');
var host = argv.host || (argv.app_id + '.mlkcca.com');

if(argv.apikey && argv.apisecret) {
var milkcocoa = new MilkCocoa(argv.app_id, {
host: host
});
}else{
var milkcocoa = MilkCocoa.connectWithApiKey(argv.app_id, argv.apikey, argv.apisecret, {
host: host
});
}else{
var milkcocoa = new MilkCocoa(argv.app_id, {
host: host
});
}

var cmd = argv['_'][0];
Expand Down

0 comments on commit f129c7f

Please sign in to comment.