diff options
| author | Yuval Adam <yuval@y3xz.com> | 2015-06-10 14:35:14 +0300 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2015-06-10 14:35:14 +0300 |
| commit | 806e0381085035d6d535835009934865fea90f5a (patch) | |
| tree | 07d87577ca100f7ac3f217b300272e92e34b5395 /client/button.js | |
| parent | b954a6dba8db4a09cf3592feeaf0518f402fcb89 (diff) | |
Hooked up Instagram API call to reactive Session source
Diffstat (limited to 'client/button.js')
| -rw-r--r-- | client/button.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/client/button.js b/client/button.js index bc3828b..1ab171e 100644 --- a/client/button.js +++ b/client/button.js @@ -15,6 +15,16 @@ Template.login.events({ } }); +Template.one.helpers({ + photos: function () { + return Session.get('photos'); + } +}) + Accounts.onLogin(function() { + Meteor.call('getInstagramMedia', function(error, results) { + console.log('Instagram response', results.data) + Session.set('photos', results.data.data); + }); Router.go('one'); }); |
