{"action":"created","issue":{"url":"https://api.github.com/repos/ahmdrz/goinsta/issues/90","repository_url":"https://api.github.com/repos/ahmdrz/goinsta","labels_url":"https://api.github.com/repos/ahmdrz/goinsta/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/ahmdrz/goinsta/issues/90/comments","events_url":"https://api.github.com/repos/ahmdrz/goinsta/issues/90/events","html_url":"https://github.com/ahmdrz/goinsta/pull/90","id":283543068,"number":90,"title":"support Instagram API JSON Error Response. ","user":{"login":"rakd","id":377909,"avatar_url":"https://avatars2.githubusercontent.com/u/377909?v=4","gravatar_id":"","url":"https://api.github.com/users/rakd","html_url":"https://github.com/rakd","followers_url":"https://api.github.com/users/rakd/followers","following_url":"https://api.github.com/users/rakd/following{/other_user}","gists_url":"https://api.github.com/users/rakd/gists{/gist_id}","starred_url":"https://api.github.com/users/rakd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rakd/subscriptions","organizations_url":"https://api.github.com/users/rakd/orgs","repos_url":"https://api.github.com/users/rakd/repos","events_url":"https://api.github.com/users/rakd/events{/privacy}","received_events_url":"https://api.github.com/users/rakd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-20T12:11:04Z","updated_at":"2018-05-13T19:49:34Z","closed_at":"2018-05-13T19:49:34Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ahmdrz/goinsta/pulls/90","html_url":"https://github.com/ahmdrz/goinsta/pull/90","diff_url":"https://github.com/ahmdrz/goinsta/pull/90.diff","patch_url":"https://github.com/ahmdrz/goinsta/pull/90.patch"},"body":"@ahmdrz \r\n\r\nWhen users login failed, Instagram return JSON Error Message with 400, now we are handling it as \"logged out\" if the response code = 400. \r\n\r\ne.g. in case of login error. the response will be below with code=400. \r\n```\r\n{\"message\": \"The password you entered is incorrect. Please try again.\", \"invalid_credentials\": true, \"error_title\": \"Incorrect password for wrong_username\", \"buttons\": [{\"title\": \"Try Again\", \"action\": \"dismiss\"}], \"status\": \"fail\", \"error_type\": \"bad_password\"}\r\n```\r\n\r\nI think we should take care of error message in JSON. \r\n\r\nThanks\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ahmdrz/goinsta/issues/comments/388651438","html_url":"https://github.com/ahmdrz/goinsta/pull/90#issuecomment-388651438","issue_url":"https://api.github.com/repos/ahmdrz/goinsta/issues/90","id":388651438,"user":{"login":"themester","id":10146748,"avatar_url":"https://avatars3.githubusercontent.com/u/10146748?v=4","gravatar_id":"","url":"https://api.github.com/users/themester","html_url":"https://github.com/themester","followers_url":"https://api.github.com/users/themester/followers","following_url":"https://api.github.com/users/themester/following{/other_user}","gists_url":"https://api.github.com/users/themester/gists{/gist_id}","starred_url":"https://api.github.com/users/themester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themester/subscriptions","organizations_url":"https://api.github.com/users/themester/orgs","repos_url":"https://api.github.com/users/themester/repos","events_url":"https://api.github.com/users/themester/events{/privacy}","received_events_url":"https://api.github.com/users/themester/received_events","type":"User","site_admin":false},"created_at":"2018-05-13T19:49:34Z","updated_at":"2018-05-13T19:49:34Z","author_association":"COLLABORATOR","body":"Added here: https://godoc.org/gopkg.in/ahmdrz/goinsta.v2"}}
{"actor":{"display_login":"themester"}}