{"action":"created","issue":{"url":"https://api.github.com/repos/msigley/Shopp-Advanced-Validation/issues/3","labels_url":"https://api.github.com/repos/msigley/Shopp-Advanced-Validation/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/msigley/Shopp-Advanced-Validation/issues/3/comments","events_url":"https://api.github.com/repos/msigley/Shopp-Advanced-Validation/issues/3/events","html_url":"https://github.com/msigley/Shopp-Advanced-Validation/issues/3","id":84340778,"number":3,"title":"Automatic selection of country","user":{"login":"dxdc","id":7200365,"avatar_url":"https://avatars.githubusercontent.com/u/7200365?v=3","gravatar_id":"","url":"https://api.github.com/users/dxdc","html_url":"https://github.com/dxdc","followers_url":"https://api.github.com/users/dxdc/followers","following_url":"https://api.github.com/users/dxdc/following{/other_user}","gists_url":"https://api.github.com/users/dxdc/gists{/gist_id}","starred_url":"https://api.github.com/users/dxdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dxdc/subscriptions","organizations_url":"https://api.github.com/users/dxdc/orgs","repos_url":"https://api.github.com/users/dxdc/repos","events_url":"https://api.github.com/users/dxdc/events{/privacy}","received_events_url":"https://api.github.com/users/dxdc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/msigley/Shopp-Advanced-Validation/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"dxdc","id":7200365,"avatar_url":"https://avatars.githubusercontent.com/u/7200365?v=3","gravatar_id":"","url":"https://api.github.com/users/dxdc","html_url":"https://github.com/dxdc","followers_url":"https://api.github.com/users/dxdc/followers","following_url":"https://api.github.com/users/dxdc/following{/other_user}","gists_url":"https://api.github.com/users/dxdc/gists{/gist_id}","starred_url":"https://api.github.com/users/dxdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dxdc/subscriptions","organizations_url":"https://api.github.com/users/dxdc/orgs","repos_url":"https://api.github.com/users/dxdc/repos","events_url":"https://api.github.com/users/dxdc/events{/privacy}","received_events_url":"https://api.github.com/users/dxdc/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-06-03T03:47:01Z","updated_at":"2015-06-03T04:26:28Z","closed_at":null,"body":"Automatically select user's country with freegeoIP plugin.\r\nHere's some sample code.\r\n\r\n```\r\njQuery.ajax( { \r\n  url: '//freegeoip.net/json/', \r\n  type: 'POST', \r\n  dataType: 'jsonp',\r\n  success: function(location) {\r\n    // example where I update content on the page.\r\n    jQuery('#city').html(location.city);\r\n    jQuery('#region-code').html(location.region_code);\r\n    jQuery('#region-name').html(location.region_name);\r\n    jQuery('#areacode').html(location.areacode);\r\n    jQuery('#ip').html(location.ip);\r\n    jQuery('#zipcode').html(location.zipcode);\r\n    jQuery('#longitude').html(location.longitude);\r\n    jQuery('#latitude').html(location.latitude);\r\n    jQuery('#country-name').html(location.country_name);\r\n    jQuery('#country-code').html(location.country_code);\r\n  }\r\n} );\r\n```"},"comment":{"url":"https://api.github.com/repos/msigley/Shopp-Advanced-Validation/issues/comments/108186867","html_url":"https://github.com/msigley/Shopp-Advanced-Validation/issues/3#issuecomment-108186867","issue_url":"https://api.github.com/repos/msigley/Shopp-Advanced-Validation/issues/3","id":108186867,"user":{"login":"dxdc","id":7200365,"avatar_url":"https://avatars.githubusercontent.com/u/7200365?v=3","gravatar_id":"","url":"https://api.github.com/users/dxdc","html_url":"https://github.com/dxdc","followers_url":"https://api.github.com/users/dxdc/followers","following_url":"https://api.github.com/users/dxdc/following{/other_user}","gists_url":"https://api.github.com/users/dxdc/gists{/gist_id}","starred_url":"https://api.github.com/users/dxdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dxdc/subscriptions","organizations_url":"https://api.github.com/users/dxdc/orgs","repos_url":"https://api.github.com/users/dxdc/repos","events_url":"https://api.github.com/users/dxdc/events{/privacy}","received_events_url":"https://api.github.com/users/dxdc/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T04:26:28Z","updated_at":"2015-06-03T04:26:28Z","body":"Added, see: https://github.com/msigley/Shopp-Advanced-Validation/pull/4"}}