[ALOY-704] Alloy social: adding username and userid
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Medium |
| Status | Resolved |
| Resolution | Fixed |
| Resolution Date | 2013-06-12T22:00:46.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Alloy 1.2.0, 2013 Sprint 12 |
| Components | Builtins, Runtime |
| Labels | n/a |
| Reporter | Daniel Sefton |
| Assignee | Unknown |
| Created | 2013-06-08T15:06:36.000+0000 |
| Updated | 2018-03-07T22:25:57.000+0000 |
Description
I have implemented callback parameters for getting the twitter username and userid when signing in with alloy social:
var social = require('social');
var twitter = social.create({
consumerSecret : "CONSUMER_SECRET",
consumerKey : "CONSUMER_KEY"
});
twitter.authorize(function(e) {
Ti.API.info("username: " + e.username);
Ti.API.info("userid: " + e.userid);
}
Github: https://github.com/appcelerator/alloy/pull/128
[~dsefton] do we have a basic test case for this ticket?