{"action":"created","comment":{"url":"https://api.github.com/repos/MiaoSiLa/go-umeng/pulls/comments/227094819","pull_request_review_id":167057127,"id":227094819,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzA5NDgxOQ==","diff_hunk":"@@ -305,27 +319,37 @@ func (data *Data) Sign(reqPath string) (api string) {\n }\n \n func (data *Data) Send(url string) (Result, error) {\n-\tvar result Result\n \treq, err := http.NewRequest(\"POST\", url, bytes.NewBuffer(data.dataBytes))\n \tif err != nil {\n-\t\treturn result, err\n+\t\treturn nil, err\n \t}\n \treq.Header.Set(\"Content-Type\", \"application/json\")\n \tclient := &http.Client{}\n-\tresp, err := client.Do(req)\n+\trespHttp, err := client.Do(req)","path":"http_client.go","position":39,"original_position":39,"commit_id":"d567b2c39d755c5ab9b87c8089b9589bcaf83a15","original_commit_id":"d567b2c39d755c5ab9b87c8089b9589bcaf83a15","user":{"login":"tengattack","id":1846356,"node_id":"MDQ6VXNlcjE4NDYzNTY=","avatar_url":"https://avatars2.githubusercontent.com/u/1846356?v=4","gravatar_id":"","url":"https://api.github.com/users/tengattack","html_url":"https://github.com/tengattack","followers_url":"https://api.github.com/users/tengattack/followers","following_url":"https://api.github.com/users/tengattack/following{/other_user}","gists_url":"https://api.github.com/users/tengattack/gists{/gist_id}","starred_url":"https://api.github.com/users/tengattack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tengattack/subscriptions","organizations_url":"https://api.github.com/users/tengattack/orgs","repos_url":"https://api.github.com/users/tengattack/repos","events_url":"https://api.github.com/users/tengattack/events{/privacy}","received_events_url":"https://api.github.com/users/tengattack/received_events","type":"User","site_admin":false},"body":"这里为啥要改名呢","created_at":"2018-10-22T18:56:37Z","updated_at":"2018-10-22T18:56:38Z","html_url":"https://github.com/MiaoSiLa/go-umeng/pull/2#discussion_r227094819","pull_request_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/MiaoSiLa/go-umeng/pulls/comments/227094819"},"html":{"href":"https://github.com/MiaoSiLa/go-umeng/pull/2#discussion_r227094819"},"pull_request":{"href":"https://api.github.com/repos/MiaoSiLa/go-umeng/pulls/2"}},"in_reply_to_id":227082736},"pull_request":{"url":"https://api.github.com/repos/MiaoSiLa/go-umeng/pulls/2","id":224622021,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NjIyMDIx","html_url":"https://github.com/MiaoSiLa/go-umeng/pull/2","diff_url":"https://github.com/MiaoSiLa/go-umeng/pull/2.diff","patch_url":"https://github.com/MiaoSiLa/go-umeng/pull/2.patch","issue_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/issues/2","number":2,"state":"open","locked":false,"title":"Add APIError","user":{"login":"MyYellowBlanket","id":11293327,"node_id":"MDQ6VXNlcjExMjkzMzI3","avatar_url":"https://avatars0.githubusercontent.com/u/11293327?v=4","gravatar_id":"","url":"https://api.github.com/users/MyYellowBlanket","html_url":"https://github.com/MyYellowBlanket","followers_url":"https://api.github.com/users/MyYellowBlanket/followers","following_url":"https://api.github.com/users/MyYellowBlanket/following{/other_user}","gists_url":"https://api.github.com/users/MyYellowBlanket/gists{/gist_id}","starred_url":"https://api.github.com/users/MyYellowBlanket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyYellowBlanket/subscriptions","organizations_url":"https://api.github.com/users/MyYellowBlanket/orgs","repos_url":"https://api.github.com/users/MyYellowBlanket/repos","events_url":"https://api.github.com/users/MyYellowBlanket/events{/privacy}","received_events_url":"https://api.github.com/users/MyYellowBlanket/received_events","type":"User","site_admin":false},"body":"[友盟的错误可以被统一返回成 error](https://github.com/MiaoSiLa/mpush/issues/7)","created_at":"2018-10-22T08:57:08Z","updated_at":"2018-10-22T18:56:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"978c6e321fed2c57884809665e253babe5077f4b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/pulls/2/commits","review_comments_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/pulls/2/comments","review_comment_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/issues/2/comments","statuses_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/statuses/d567b2c39d755c5ab9b87c8089b9589bcaf83a15","head":{"label":"MyYellowBlanket:api_error","ref":"api_error","sha":"d567b2c39d755c5ab9b87c8089b9589bcaf83a15","user":{"login":"MyYellowBlanket","id":11293327,"node_id":"MDQ6VXNlcjExMjkzMzI3","avatar_url":"https://avatars0.githubusercontent.com/u/11293327?v=4","gravatar_id":"","url":"https://api.github.com/users/MyYellowBlanket","html_url":"https://github.com/MyYellowBlanket","followers_url":"https://api.github.com/users/MyYellowBlanket/followers","following_url":"https://api.github.com/users/MyYellowBlanket/following{/other_user}","gists_url":"https://api.github.com/users/MyYellowBlanket/gists{/gist_id}","starred_url":"https://api.github.com/users/MyYellowBlanket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyYellowBlanket/subscriptions","organizations_url":"https://api.github.com/users/MyYellowBlanket/orgs","repos_url":"https://api.github.com/users/MyYellowBlanket/repos","events_url":"https://api.github.com/users/MyYellowBlanket/events{/privacy}","received_events_url":"https://api.github.com/users/MyYellowBlanket/received_events","type":"User","site_admin":false},"repo":{"id":151046679,"node_id":"MDEwOlJlcG9zaXRvcnkxNTEwNDY2Nzk=","name":"go-umeng","full_name":"MyYellowBlanket/go-umeng","private":false,"owner":{"login":"MyYellowBlanket","id":11293327,"node_id":"MDQ6VXNlcjExMjkzMzI3","avatar_url":"https://avatars0.githubusercontent.com/u/11293327?v=4","gravatar_id":"","url":"https://api.github.com/users/MyYellowBlanket","html_url":"https://github.com/MyYellowBlanket","followers_url":"https://api.github.com/users/MyYellowBlanket/followers","following_url":"https://api.github.com/users/MyYellowBlanket/following{/other_user}","gists_url":"https://api.github.com/users/MyYellowBlanket/gists{/gist_id}","starred_url":"https://api.github.com/users/MyYellowBlanket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyYellowBlanket/subscriptions","organizations_url":"https://api.github.com/users/MyYellowBlanket/orgs","repos_url":"https://api.github.com/users/MyYellowBlanket/repos","events_url":"https://api.github.com/users/MyYellowBlanket/events{/privacy}","received_events_url":"https://api.github.com/users/MyYellowBlanket/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MyYellowBlanket/go-umeng","description":"golang sdk for umeng push service","fork":true,"url":"https://api.github.com/repos/MyYellowBlanket/go-umeng","forks_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/forks","keys_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/teams","hooks_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/hooks","issue_events_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/issues/events{/number}","events_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/events","assignees_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/assignees{/user}","branches_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/branches{/branch}","tags_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/tags","blobs_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/git/refs{/sha}","trees_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/statuses/{sha}","languages_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/languages","stargazers_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/stargazers","contributors_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/contributors","subscribers_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/subscribers","subscription_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/subscription","commits_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/commits{/sha}","git_commits_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/git/commits{/sha}","comments_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/comments{/number}","issue_comment_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/issues/comments{/number}","contents_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/contents/{+path}","compare_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/merges","archive_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/downloads","issues_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/issues{/number}","pulls_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/pulls{/number}","milestones_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/milestones{/number}","notifications_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/labels{/name}","releases_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/releases{/id}","deployments_url":"https://api.github.com/repos/MyYellowBlanket/go-umeng/deployments","created_at":"2018-10-01T06:43:37Z","updated_at":"2018-10-01T11:01:39Z","pushed_at":"2018-10-22T08:05:12Z","git_url":"git://github.com/MyYellowBlanket/go-umeng.git","ssh_url":"git@github.com:MyYellowBlanket/go-umeng.git","clone_url":"https://github.com/MyYellowBlanket/go-umeng.git","svn_url":"https://github.com/MyYellowBlanket/go-umeng","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"MiaoSiLa:master","ref":"master","sha":"0c43e784b4e7bd537e502af7579704c5ba03259d","user":{"login":"MiaoSiLa","id":9567246,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk1NjcyNDY=","avatar_url":"https://avatars2.githubusercontent.com/u/9567246?v=4","gravatar_id":"","url":"https://api.github.com/users/MiaoSiLa","html_url":"https://github.com/MiaoSiLa","followers_url":"https://api.github.com/users/MiaoSiLa/followers","following_url":"https://api.github.com/users/MiaoSiLa/following{/other_user}","gists_url":"https://api.github.com/users/MiaoSiLa/gists{/gist_id}","starred_url":"https://api.github.com/users/MiaoSiLa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiaoSiLa/subscriptions","organizations_url":"https://api.github.com/users/MiaoSiLa/orgs","repos_url":"https://api.github.com/users/MiaoSiLa/repos","events_url":"https://api.github.com/users/MiaoSiLa/events{/privacy}","received_events_url":"https://api.github.com/users/MiaoSiLa/received_events","type":"Organization","site_admin":false},"repo":{"id":104726612,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQ3MjY2MTI=","name":"go-umeng","full_name":"MiaoSiLa/go-umeng","private":false,"owner":{"login":"MiaoSiLa","id":9567246,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk1NjcyNDY=","avatar_url":"https://avatars2.githubusercontent.com/u/9567246?v=4","gravatar_id":"","url":"https://api.github.com/users/MiaoSiLa","html_url":"https://github.com/MiaoSiLa","followers_url":"https://api.github.com/users/MiaoSiLa/followers","following_url":"https://api.github.com/users/MiaoSiLa/following{/other_user}","gists_url":"https://api.github.com/users/MiaoSiLa/gists{/gist_id}","starred_url":"https://api.github.com/users/MiaoSiLa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiaoSiLa/subscriptions","organizations_url":"https://api.github.com/users/MiaoSiLa/orgs","repos_url":"https://api.github.com/users/MiaoSiLa/repos","events_url":"https://api.github.com/users/MiaoSiLa/events{/privacy}","received_events_url":"https://api.github.com/users/MiaoSiLa/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/MiaoSiLa/go-umeng","description":"golang sdk for umeng push service","fork":true,"url":"https://api.github.com/repos/MiaoSiLa/go-umeng","forks_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/forks","keys_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/teams","hooks_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/hooks","issue_events_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/issues/events{/number}","events_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/events","assignees_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/assignees{/user}","branches_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/branches{/branch}","tags_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/tags","blobs_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/git/refs{/sha}","trees_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/statuses/{sha}","languages_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/languages","stargazers_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/stargazers","contributors_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/contributors","subscribers_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/subscribers","subscription_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/subscription","commits_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/commits{/sha}","git_commits_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/git/commits{/sha}","comments_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/comments{/number}","issue_comment_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/issues/comments{/number}","contents_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/contents/{+path}","compare_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/merges","archive_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/downloads","issues_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/issues{/number}","pulls_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/pulls{/number}","milestones_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/milestones{/number}","notifications_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/labels{/name}","releases_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/releases{/id}","deployments_url":"https://api.github.com/repos/MiaoSiLa/go-umeng/deployments","created_at":"2017-09-25T08:59:13Z","updated_at":"2018-10-01T10:43:59Z","pushed_at":"2018-10-22T08:57:11Z","git_url":"git://github.com/MiaoSiLa/go-umeng.git","ssh_url":"git@github.com:MiaoSiLa/go-umeng.git","clone_url":"https://github.com/MiaoSiLa/go-umeng.git","svn_url":"https://github.com/MiaoSiLa/go-umeng","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MiaoSiLa/go-umeng/pulls/2"},"html":{"href":"https://github.com/MiaoSiLa/go-umeng/pull/2"},"issue":{"href":"https://api.github.com/repos/MiaoSiLa/go-umeng/issues/2"},"comments":{"href":"https://api.github.com/repos/MiaoSiLa/go-umeng/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/MiaoSiLa/go-umeng/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/MiaoSiLa/go-umeng/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MiaoSiLa/go-umeng/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/MiaoSiLa/go-umeng/statuses/d567b2c39d755c5ab9b87c8089b9589bcaf83a15"}},"author_association":"NONE"}}
{"actor":{"display_login":"tengattack"}}