{"action":"created","issue":{"url":"https://api.github.com/repos/fossasia/loklak_wok_android/issues/44","repository_url":"https://api.github.com/repos/fossasia/loklak_wok_android","labels_url":"https://api.github.com/repos/fossasia/loklak_wok_android/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/fossasia/loklak_wok_android/issues/44/comments","events_url":"https://api.github.com/repos/fossasia/loklak_wok_android/issues/44/events","html_url":"https://github.com/fossasia/loklak_wok_android/pull/44","id":242268077,"number":44,"title":"Fixes #41: Adds tweet posting","user":{"login":"SKrPl","id":12163892,"avatar_url":"https://avatars2.githubusercontent.com/u/12163892?v=4","gravatar_id":"","url":"https://api.github.com/users/SKrPl","html_url":"https://github.com/SKrPl","followers_url":"https://api.github.com/users/SKrPl/followers","following_url":"https://api.github.com/users/SKrPl/following{/other_user}","gists_url":"https://api.github.com/users/SKrPl/gists{/gist_id}","starred_url":"https://api.github.com/users/SKrPl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SKrPl/subscriptions","organizations_url":"https://api.github.com/users/SKrPl/orgs","repos_url":"https://api.github.com/users/SKrPl/repos","events_url":"https://api.github.com/users/SKrPl/events{/privacy}","received_events_url":"https://api.github.com/users/SKrPl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-07-12T06:01:14Z","updated_at":"2017-07-31T14:46:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/fossasia/loklak_wok_android/pulls/44","html_url":"https://github.com/fossasia/loklak_wok_android/pull/44","diff_url":"https://github.com/fossasia/loklak_wok_android/pull/44.diff","patch_url":"https://github.com/fossasia/loklak_wok_android/pull/44.patch"},"body":"Fixes issue: https://github.com/fossasia/loklak_wok_android/issues/41\r\n\r\nThis commit adds the following features:\r\n1. The oauth-signature is generated by modifying the snippet from https://gist.github.com/serj-lotutovici/f85518e99b23008b3180 .\r\n2. 3-legged Authorization, which allows the user to log in to Twitter to authorize Loklak wok to post their tweet.\r\n3. Runtime android permissions for camera, files and location.\r\n4. Tweet posting functionality, with images and location:\r\n    * Images are posted using a multipart post request which returns a mediaId, the API endpoint used is: https://dev.twitter.com/rest/reference/post/media/upload.\r\n    * Location of user is obtained from Location Manager.\r\n    * meidaId and location are passed as parameters to statuses/update twitter API endpoint.\r\n5. Finally the posted tweet is cross posted to loklak server using push API endpoint of loklak_server."},"comment":{"url":"https://api.github.com/repos/fossasia/loklak_wok_android/issues/comments/319089313","html_url":"https://github.com/fossasia/loklak_wok_android/pull/44#issuecomment-319089313","issue_url":"https://api.github.com/repos/fossasia/loklak_wok_android/issues/44","id":319089313,"user":{"login":"SKrPl","id":12163892,"avatar_url":"https://avatars2.githubusercontent.com/u/12163892?v=4","gravatar_id":"","url":"https://api.github.com/users/SKrPl","html_url":"https://github.com/SKrPl","followers_url":"https://api.github.com/users/SKrPl/followers","following_url":"https://api.github.com/users/SKrPl/following{/other_user}","gists_url":"https://api.github.com/users/SKrPl/gists{/gist_id}","starred_url":"https://api.github.com/users/SKrPl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SKrPl/subscriptions","organizations_url":"https://api.github.com/users/SKrPl/orgs","repos_url":"https://api.github.com/users/SKrPl/repos","events_url":"https://api.github.com/users/SKrPl/events{/privacy}","received_events_url":"https://api.github.com/users/SKrPl/received_events","type":"User","site_admin":false},"created_at":"2017-07-31T14:46:59Z","updated_at":"2017-07-31T14:46:59Z","body":"@vibhcool that's strange, can you try posting the same image you posted from camera by selecting it from gallery? And please share the image which you were trying to tweet. PS: The image size should not be greater than 3MiB."}}
{"actor":{"display_login":"SKrPl"}}