{"action":"created","comment":{"url":"https://api.github.com/repos/excellencetechnologies/atul/pulls/comments/72252060","id":72252060,"diff_hunk":"@@ -1,10 +1,57 @@\n import { createAction, handleAction, handleActions } from 'redux-actions';\n+import promiseMiddleware from 'redux-promise';\n+\n+\n \n export const LOGIN_SUBMIT = 'LOGIN_SUBMIT'\n export const ADD_USER = 'ADD_USER'\n export const DO_VOTE = 'DO_VOTE'\n \n+ //const somePromise = \n+\n+\n+export function dologin(user, pass){\n+  var url = \"http://144.76.34.244:3333/login?username=\"+user+\"&password=\"+pass;\n+    var result = jQuery.parseJSON(\n+       jQuery.ajax({\n+           url: url,\n+           async: false,\n+           dataType: 'json'\n+       }).responseText\n+    );\n+ // console.log(result);\n+  return loginaction(result);\n+}\n+export const loginaction = (data)=>createAction(\"LOGIN_SUBMIT\")(data);\n+\n+\n+export function adduser(user, pass, role){\n+        var url = \"http://144.76.34.244:3333/add_user?username=\"+user+\"&password=\"+pass+\"&role=\"+role","path":"poll_managment/actions/index.js","position":37,"original_position":29,"commit_id":"ad4cc26e87ed9f9a28c370ad048e314de6ab6a2b","original_commit_id":"ad4cc26e87ed9f9a28c370ad048e314de6ab6a2b","user":{"login":"excellencetechnologies","id":956347,"avatar_url":"https://avatars.githubusercontent.com/u/956347?v=3","gravatar_id":"","url":"https://api.github.com/users/excellencetechnologies","html_url":"https://github.com/excellencetechnologies","followers_url":"https://api.github.com/users/excellencetechnologies/followers","following_url":"https://api.github.com/users/excellencetechnologies/following{/other_user}","gists_url":"https://api.github.com/users/excellencetechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/excellencetechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/excellencetechnologies/subscriptions","organizations_url":"https://api.github.com/users/excellencetechnologies/orgs","repos_url":"https://api.github.com/users/excellencetechnologies/repos","events_url":"https://api.github.com/users/excellencetechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/excellencetechnologies/received_events","type":"User","site_admin":false},"body":"create a config folder and a file in it config\r\nwhich will have the api base url and u will use this where u need to call api url","created_at":"2016-07-26T13:49:11Z","updated_at":"2016-07-26T13:49:11Z","html_url":"https://github.com/excellencetechnologies/atul/pull/16#discussion_r72252060","pull_request_url":"https://api.github.com/repos/excellencetechnologies/atul/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/excellencetechnologies/atul/pulls/comments/72252060"},"html":{"href":"https://github.com/excellencetechnologies/atul/pull/16#discussion_r72252060"},"pull_request":{"href":"https://api.github.com/repos/excellencetechnologies/atul/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/excellencetechnologies/atul/pulls/16","id":78825251,"html_url":"https://github.com/excellencetechnologies/atul/pull/16","diff_url":"https://github.com/excellencetechnologies/atul/pull/16.diff","patch_url":"https://github.com/excellencetechnologies/atul/pull/16.patch","issue_url":"https://api.github.com/repos/excellencetechnologies/atul/issues/16","number":16,"state":"open","locked":false,"title":"userDashbord","user":{"login":"excellencetechnologies","id":956347,"avatar_url":"https://avatars.githubusercontent.com/u/956347?v=3","gravatar_id":"","url":"https://api.github.com/users/excellencetechnologies","html_url":"https://github.com/excellencetechnologies","followers_url":"https://api.github.com/users/excellencetechnologies/followers","following_url":"https://api.github.com/users/excellencetechnologies/following{/other_user}","gists_url":"https://api.github.com/users/excellencetechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/excellencetechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/excellencetechnologies/subscriptions","organizations_url":"https://api.github.com/users/excellencetechnologies/orgs","repos_url":"https://api.github.com/users/excellencetechnologies/repos","events_url":"https://api.github.com/users/excellencetechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/excellencetechnologies/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-26T10:12:38Z","updated_at":"2016-07-26T13:49:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f09d8dcfed2e80cbbf430a6e7068ca3a61977f83","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/excellencetechnologies/atul/pulls/16/commits","review_comments_url":"https://api.github.com/repos/excellencetechnologies/atul/pulls/16/comments","review_comment_url":"https://api.github.com/repos/excellencetechnologies/atul/pulls/comments{/number}","comments_url":"https://api.github.com/repos/excellencetechnologies/atul/issues/16/comments","statuses_url":"https://api.github.com/repos/excellencetechnologies/atul/statuses/ad4cc26e87ed9f9a28c370ad048e314de6ab6a2b","head":{"label":"excellencetechnologies:pms","ref":"pms","sha":"ad4cc26e87ed9f9a28c370ad048e314de6ab6a2b","user":{"login":"excellencetechnologies","id":956347,"avatar_url":"https://avatars.githubusercontent.com/u/956347?v=3","gravatar_id":"","url":"https://api.github.com/users/excellencetechnologies","html_url":"https://github.com/excellencetechnologies","followers_url":"https://api.github.com/users/excellencetechnologies/followers","following_url":"https://api.github.com/users/excellencetechnologies/following{/other_user}","gists_url":"https://api.github.com/users/excellencetechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/excellencetechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/excellencetechnologies/subscriptions","organizations_url":"https://api.github.com/users/excellencetechnologies/orgs","repos_url":"https://api.github.com/users/excellencetechnologies/repos","events_url":"https://api.github.com/users/excellencetechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/excellencetechnologies/received_events","type":"User","site_admin":false},"repo":{"id":62556917,"name":"atul","full_name":"excellencetechnologies/atul","owner":{"login":"excellencetechnologies","id":956347,"avatar_url":"https://avatars.githubusercontent.com/u/956347?v=3","gravatar_id":"","url":"https://api.github.com/users/excellencetechnologies","html_url":"https://github.com/excellencetechnologies","followers_url":"https://api.github.com/users/excellencetechnologies/followers","following_url":"https://api.github.com/users/excellencetechnologies/following{/other_user}","gists_url":"https://api.github.com/users/excellencetechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/excellencetechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/excellencetechnologies/subscriptions","organizations_url":"https://api.github.com/users/excellencetechnologies/orgs","repos_url":"https://api.github.com/users/excellencetechnologies/repos","events_url":"https://api.github.com/users/excellencetechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/excellencetechnologies/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/excellencetechnologies/atul","description":null,"fork":false,"url":"https://api.github.com/repos/excellencetechnologies/atul","forks_url":"https://api.github.com/repos/excellencetechnologies/atul/forks","keys_url":"https://api.github.com/repos/excellencetechnologies/atul/keys{/key_id}","collaborators_url":"https://api.github.com/repos/excellencetechnologies/atul/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/excellencetechnologies/atul/teams","hooks_url":"https://api.github.com/repos/excellencetechnologies/atul/hooks","issue_events_url":"https://api.github.com/repos/excellencetechnologies/atul/issues/events{/number}","events_url":"https://api.github.com/repos/excellencetechnologies/atul/events","assignees_url":"https://api.github.com/repos/excellencetechnologies/atul/assignees{/user}","branches_url":"https://api.github.com/repos/excellencetechnologies/atul/branches{/branch}","tags_url":"https://api.github.com/repos/excellencetechnologies/atul/tags","blobs_url":"https://api.github.com/repos/excellencetechnologies/atul/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/excellencetechnologies/atul/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/excellencetechnologies/atul/git/refs{/sha}","trees_url":"https://api.github.com/repos/excellencetechnologies/atul/git/trees{/sha}","statuses_url":"https://api.github.com/repos/excellencetechnologies/atul/statuses/{sha}","languages_url":"https://api.github.com/repos/excellencetechnologies/atul/languages","stargazers_url":"https://api.github.com/repos/excellencetechnologies/atul/stargazers","contributors_url":"https://api.github.com/repos/excellencetechnologies/atul/contributors","subscribers_url":"https://api.github.com/repos/excellencetechnologies/atul/subscribers","subscription_url":"https://api.github.com/repos/excellencetechnologies/atul/subscription","commits_url":"https://api.github.com/repos/excellencetechnologies/atul/commits{/sha}","git_commits_url":"https://api.github.com/repos/excellencetechnologies/atul/git/commits{/sha}","comments_url":"https://api.github.com/repos/excellencetechnologies/atul/comments{/number}","issue_comment_url":"https://api.github.com/repos/excellencetechnologies/atul/issues/comments{/number}","contents_url":"https://api.github.com/repos/excellencetechnologies/atul/contents/{+path}","compare_url":"https://api.github.com/repos/excellencetechnologies/atul/compare/{base}...{head}","merges_url":"https://api.github.com/repos/excellencetechnologies/atul/merges","archive_url":"https://api.github.com/repos/excellencetechnologies/atul/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/excellencetechnologies/atul/downloads","issues_url":"https://api.github.com/repos/excellencetechnologies/atul/issues{/number}","pulls_url":"https://api.github.com/repos/excellencetechnologies/atul/pulls{/number}","milestones_url":"https://api.github.com/repos/excellencetechnologies/atul/milestones{/number}","notifications_url":"https://api.github.com/repos/excellencetechnologies/atul/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/excellencetechnologies/atul/labels{/name}","releases_url":"https://api.github.com/repos/excellencetechnologies/atul/releases{/id}","deployments_url":"https://api.github.com/repos/excellencetechnologies/atul/deployments","created_at":"2016-07-04T11:23:47Z","updated_at":"2016-07-18T12:41:26Z","pushed_at":"2016-07-26T13:39:42Z","git_url":"git://github.com/excellencetechnologies/atul.git","ssh_url":"git@github.com:excellencetechnologies/atul.git","clone_url":"https://github.com/excellencetechnologies/atul.git","svn_url":"https://github.com/excellencetechnologies/atul","homepage":null,"size":22802,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"excellencetechnologies:master","ref":"master","sha":"aa8c76046c518a33533afd3009cbf23f05c0cae7","user":{"login":"excellencetechnologies","id":956347,"avatar_url":"https://avatars.githubusercontent.com/u/956347?v=3","gravatar_id":"","url":"https://api.github.com/users/excellencetechnologies","html_url":"https://github.com/excellencetechnologies","followers_url":"https://api.github.com/users/excellencetechnologies/followers","following_url":"https://api.github.com/users/excellencetechnologies/following{/other_user}","gists_url":"https://api.github.com/users/excellencetechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/excellencetechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/excellencetechnologies/subscriptions","organizations_url":"https://api.github.com/users/excellencetechnologies/orgs","repos_url":"https://api.github.com/users/excellencetechnologies/repos","events_url":"https://api.github.com/users/excellencetechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/excellencetechnologies/received_events","type":"User","site_admin":false},"repo":{"id":62556917,"name":"atul","full_name":"excellencetechnologies/atul","owner":{"login":"excellencetechnologies","id":956347,"avatar_url":"https://avatars.githubusercontent.com/u/956347?v=3","gravatar_id":"","url":"https://api.github.com/users/excellencetechnologies","html_url":"https://github.com/excellencetechnologies","followers_url":"https://api.github.com/users/excellencetechnologies/followers","following_url":"https://api.github.com/users/excellencetechnologies/following{/other_user}","gists_url":"https://api.github.com/users/excellencetechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/excellencetechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/excellencetechnologies/subscriptions","organizations_url":"https://api.github.com/users/excellencetechnologies/orgs","repos_url":"https://api.github.com/users/excellencetechnologies/repos","events_url":"https://api.github.com/users/excellencetechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/excellencetechnologies/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/excellencetechnologies/atul","description":null,"fork":false,"url":"https://api.github.com/repos/excellencetechnologies/atul","forks_url":"https://api.github.com/repos/excellencetechnologies/atul/forks","keys_url":"https://api.github.com/repos/excellencetechnologies/atul/keys{/key_id}","collaborators_url":"https://api.github.com/repos/excellencetechnologies/atul/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/excellencetechnologies/atul/teams","hooks_url":"https://api.github.com/repos/excellencetechnologies/atul/hooks","issue_events_url":"https://api.github.com/repos/excellencetechnologies/atul/issues/events{/number}","events_url":"https://api.github.com/repos/excellencetechnologies/atul/events","assignees_url":"https://api.github.com/repos/excellencetechnologies/atul/assignees{/user}","branches_url":"https://api.github.com/repos/excellencetechnologies/atul/branches{/branch}","tags_url":"https://api.github.com/repos/excellencetechnologies/atul/tags","blobs_url":"https://api.github.com/repos/excellencetechnologies/atul/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/excellencetechnologies/atul/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/excellencetechnologies/atul/git/refs{/sha}","trees_url":"https://api.github.com/repos/excellencetechnologies/atul/git/trees{/sha}","statuses_url":"https://api.github.com/repos/excellencetechnologies/atul/statuses/{sha}","languages_url":"https://api.github.com/repos/excellencetechnologies/atul/languages","stargazers_url":"https://api.github.com/repos/excellencetechnologies/atul/stargazers","contributors_url":"https://api.github.com/repos/excellencetechnologies/atul/contributors","subscribers_url":"https://api.github.com/repos/excellencetechnologies/atul/subscribers","subscription_url":"https://api.github.com/repos/excellencetechnologies/atul/subscription","commits_url":"https://api.github.com/repos/excellencetechnologies/atul/commits{/sha}","git_commits_url":"https://api.github.com/repos/excellencetechnologies/atul/git/commits{/sha}","comments_url":"https://api.github.com/repos/excellencetechnologies/atul/comments{/number}","issue_comment_url":"https://api.github.com/repos/excellencetechnologies/atul/issues/comments{/number}","contents_url":"https://api.github.com/repos/excellencetechnologies/atul/contents/{+path}","compare_url":"https://api.github.com/repos/excellencetechnologies/atul/compare/{base}...{head}","merges_url":"https://api.github.com/repos/excellencetechnologies/atul/merges","archive_url":"https://api.github.com/repos/excellencetechnologies/atul/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/excellencetechnologies/atul/downloads","issues_url":"https://api.github.com/repos/excellencetechnologies/atul/issues{/number}","pulls_url":"https://api.github.com/repos/excellencetechnologies/atul/pulls{/number}","milestones_url":"https://api.github.com/repos/excellencetechnologies/atul/milestones{/number}","notifications_url":"https://api.github.com/repos/excellencetechnologies/atul/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/excellencetechnologies/atul/labels{/name}","releases_url":"https://api.github.com/repos/excellencetechnologies/atul/releases{/id}","deployments_url":"https://api.github.com/repos/excellencetechnologies/atul/deployments","created_at":"2016-07-04T11:23:47Z","updated_at":"2016-07-18T12:41:26Z","pushed_at":"2016-07-26T13:39:42Z","git_url":"git://github.com/excellencetechnologies/atul.git","ssh_url":"git@github.com:excellencetechnologies/atul.git","clone_url":"https://github.com/excellencetechnologies/atul.git","svn_url":"https://github.com/excellencetechnologies/atul","homepage":null,"size":22802,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/excellencetechnologies/atul/pulls/16"},"html":{"href":"https://github.com/excellencetechnologies/atul/pull/16"},"issue":{"href":"https://api.github.com/repos/excellencetechnologies/atul/issues/16"},"comments":{"href":"https://api.github.com/repos/excellencetechnologies/atul/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/excellencetechnologies/atul/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/excellencetechnologies/atul/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/excellencetechnologies/atul/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/excellencetechnologies/atul/statuses/ad4cc26e87ed9f9a28c370ad048e314de6ab6a2b"}}}}
{"actor":{"display_login":"excellencetechnologies"}}