{"action":"created","issue":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/219","labels_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/219/comments","events_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/219/events","html_url":"https://github.com/Hammerspoon/hammerspoon/issues/219","id":57913135,"number":219,"title":"Network (http, ping) extension","user":{"login":"nocivus","id":3353,"avatar_url":"https://avatars.githubusercontent.com/u/3353?v=3","gravatar_id":"","url":"https://api.github.com/users/nocivus","html_url":"https://github.com/nocivus","followers_url":"https://api.github.com/users/nocivus/followers","following_url":"https://api.github.com/users/nocivus/following{/other_user}","gists_url":"https://api.github.com/users/nocivus/gists{/gist_id}","starred_url":"https://api.github.com/users/nocivus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nocivus/subscriptions","organizations_url":"https://api.github.com/users/nocivus/orgs","repos_url":"https://api.github.com/users/nocivus/repos","events_url":"https://api.github.com/users/nocivus/events{/privacy}","received_events_url":"https://api.github.com/users/nocivus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/labels/extension%20suggestion","name":"extension suggestion","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-17T11:30:23Z","updated_at":"2015-04-24T13:20:14Z","closed_at":null,"body":"It would be nice to be able to access the network via the app.\r\n\r\nThis would allow things like checking whether your internet connection is working (by pinging a certain server, for instance), requesting data from the internets, etc."},"comment":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/comments/95930837","html_url":"https://github.com/Hammerspoon/hammerspoon/issues/219#issuecomment-95930837","issue_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/219","id":95930837,"user":{"login":"dereulenspiegel","id":103365,"avatar_url":"https://avatars.githubusercontent.com/u/103365?v=3","gravatar_id":"","url":"https://api.github.com/users/dereulenspiegel","html_url":"https://github.com/dereulenspiegel","followers_url":"https://api.github.com/users/dereulenspiegel/followers","following_url":"https://api.github.com/users/dereulenspiegel/following{/other_user}","gists_url":"https://api.github.com/users/dereulenspiegel/gists{/gist_id}","starred_url":"https://api.github.com/users/dereulenspiegel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dereulenspiegel/subscriptions","organizations_url":"https://api.github.com/users/dereulenspiegel/orgs","repos_url":"https://api.github.com/users/dereulenspiegel/repos","events_url":"https://api.github.com/users/dereulenspiegel/events{/privacy}","received_events_url":"https://api.github.com/users/dereulenspiegel/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T13:20:14Z","updated_at":"2015-04-24T13:20:14Z","body":"It should be pretty easy to also create an async version where you can specify two callbacks (one for success, one for exceptions), but since I'm new to Objective-C and to Lua, I wanted to create something simple that works. For my scripts synchronous execution is fine.\r\nAfter I documented the Lua parts of my extension I will have a look at how to call callbacks from C."}}