{"action":"opened","issue":{"url":"https://api.github.com/repos/bounswe/bounswe2015group7/issues/82","labels_url":"https://api.github.com/repos/bounswe/bounswe2015group7/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/bounswe/bounswe2015group7/issues/82/comments","events_url":"https://api.github.com/repos/bounswe/bounswe2015group7/issues/82/events","html_url":"https://github.com/bounswe/bounswe2015group7/issues/82","id":115365307,"number":82,"title":"Android create story activity","user":{"login":"fthdgn","id":7540704,"avatar_url":"https://avatars.githubusercontent.com/u/7540704?v=3","gravatar_id":"","url":"https://api.github.com/users/fthdgn","html_url":"https://github.com/fthdgn","followers_url":"https://api.github.com/users/fthdgn/followers","following_url":"https://api.github.com/users/fthdgn/following{/other_user}","gists_url":"https://api.github.com/users/fthdgn/gists{/gist_id}","starred_url":"https://api.github.com/users/fthdgn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fthdgn/subscriptions","organizations_url":"https://api.github.com/users/fthdgn/orgs","repos_url":"https://api.github.com/users/fthdgn/repos","events_url":"https://api.github.com/users/fthdgn/events{/privacy}","received_events_url":"https://api.github.com/users/fthdgn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bounswe/bounswe2015group7/labels/android","name":"android","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"ceenk","id":10913678,"avatar_url":"https://avatars.githubusercontent.com/u/10913678?v=3","gravatar_id":"","url":"https://api.github.com/users/ceenk","html_url":"https://github.com/ceenk","followers_url":"https://api.github.com/users/ceenk/followers","following_url":"https://api.github.com/users/ceenk/following{/other_user}","gists_url":"https://api.github.com/users/ceenk/gists{/gist_id}","starred_url":"https://api.github.com/users/ceenk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceenk/subscriptions","organizations_url":"https://api.github.com/users/ceenk/orgs","repos_url":"https://api.github.com/users/ceenk/repos","events_url":"https://api.github.com/users/ceenk/events{/privacy}","received_events_url":"https://api.github.com/users/ceenk/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-11-05T20:17:03Z","updated_at":"2015-11-05T20:17:03Z","closed_at":null,"body":"We should implement an activity to create new stories.\r\n\r\nThe story creation API can be called like that\r\n```java\r\nHashMap<String, Object> param = new HashMap<String, Object>();\r\nparam.put(\"title\", \"Winter on Canada\");\r\nparam.put(\"content\", \"It was a cold winder\");\r\nArrayList<String> tags = new ArrayList<String>();\r\ntags.add(\"Canada\");\r\ntags.add(\"winter\");\r\ntags.add(\"snow\");\r\nparam.put(\"tags\", tags);\r\n\r\nParseCloud.callFunctionInBackground(\"story_create\", param, new FunctionCallback<ParseObject>() {\r\n\t@Override\r\n\tpublic void done(ParseObject object, ParseException e) {\r\n\t\tif(e ==null) {\r\n\t\t\tToast.makeText(getApplicationContext(), object.getString(\"title\"), Toast.LENGTH_SHORT).show();\r\n\r\n\t\t}\r\n\t\telse\r\n\t\t\tToast.makeText(getApplicationContext(), e.toString(), Toast.LENGTH_SHORT).show();\r\n\t}\r\n}\r\n);\r\n```"}}