{ "id": "166569", "key": "ALOY-1546", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-12-04T15:27:20.000+0000", "created": "2017-03-12T17:25:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "18731", "name": "alloy 1.9.5", "archived": false, "released": true, "releaseDate": "2016-11-30" } ], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2018-12-04T15:27:20.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "Hi,\r\nWe are trying to get Twitter user info using following documentation: \r\nhttp://docs.appcelerator.com/platform/latest/#!/api/Alloy.builtins.social\r\n\r\nSteps :\r\n1. Create a simple alloy project.\r\n2. Add following code:\r\n{code}\r\nvar social = require('alloy/social').create({\r\n\tconsumerSecret :'yyy',\r\n\tconsumerKey : 'zzzz'\r\n});\r\n\r\nfunction doClick(e) {\r\n\tif (!social.isAuthorized()) {\r\n\t\tsocial.authorize(function(e) {\r\n\t\t\talert(JSON.stringify(e));\r\n\t\t});\r\n\t}\r\n}\r\n$.index.open();\r\n{code}\r\n\r\n3. After Authorize apps.\r\n[^0-sa-d2-9e99ac3363469698d457463077931f46.jpg]\r\n4. It said enter that pin number \r\n!Screenshot_20170312-231225.png|thumbnail!\r\n5. Where to put that pin number ?\r\n", "attachment": [ { "id": "61834", "filename": "0-sa-d2-9e99ac3363469698d457463077931f46.jpg", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-03-12T17:27:37.000+0000", "size": 84011, "mimeType": "image/jpeg" }, { "id": "61833", "filename": "Screenshot_20170312-231225.png", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-03-12T17:27:38.000+0000", "size": 203296, "mimeType": "image/png" } ], "flagged": false, "summary": "Alloy.builtins.social: Unable to get Twitter user info", "creator": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "environment": null, "comment": { "comments": [ { "id": "416748", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hi, Is there any update on this issue?", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-04-04T16:02:09.000+0000", "updated": "2017-04-04T16:02:09.000+0000" }, { "id": "416792", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "On Android, evalJS returns following error:\r\n{code}\r\n Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: \"script-src https://abs.twimg.com https://abs-0.twimg.com https://twitter.com https://mobile.twitter.com\".\r\n{code}\r\n\r\nLooks like there's no way the builtins can scrape auth PIN from the page. One possible solution is to add an input box for users to key in the pin, though this will change user experience completely. ", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2017-04-04T21:15:31.000+0000", "updated": "2017-04-04T21:15:31.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }