{"action":"created","issue":{"url":"https://api.github.com/repos/GeoNet/msg/issues/38","labels_url":"https://api.github.com/repos/GeoNet/msg/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/GeoNet/msg/issues/38/comments","events_url":"https://api.github.com/repos/GeoNet/msg/issues/38/events","html_url":"https://github.com/GeoNet/msg/pull/38","id":86403262,"number":38,"title":"Add Twitter messaging. Truncats message >140 chars after url shortened.","user":{"login":"junghao","id":8474881,"avatar_url":"https://avatars.githubusercontent.com/u/8474881?v=3","gravatar_id":"","url":"https://api.github.com/users/junghao","html_url":"https://github.com/junghao","followers_url":"https://api.github.com/users/junghao/followers","following_url":"https://api.github.com/users/junghao/following{/other_user}","gists_url":"https://api.github.com/users/junghao/gists{/gist_id}","starred_url":"https://api.github.com/users/junghao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junghao/subscriptions","organizations_url":"https://api.github.com/users/junghao/orgs","repos_url":"https://api.github.com/users/junghao/repos","events_url":"https://api.github.com/users/junghao/events{/privacy}","received_events_url":"https://api.github.com/users/junghao/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"gclitheroe","id":1016463,"avatar_url":"https://avatars.githubusercontent.com/u/1016463?v=3","gravatar_id":"","url":"https://api.github.com/users/gclitheroe","html_url":"https://github.com/gclitheroe","followers_url":"https://api.github.com/users/gclitheroe/followers","following_url":"https://api.github.com/users/gclitheroe/following{/other_user}","gists_url":"https://api.github.com/users/gclitheroe/gists{/gist_id}","starred_url":"https://api.github.com/users/gclitheroe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gclitheroe/subscriptions","organizations_url":"https://api.github.com/users/gclitheroe/orgs","repos_url":"https://api.github.com/users/gclitheroe/repos","events_url":"https://api.github.com/users/gclitheroe/events{/privacy}","received_events_url":"https://api.github.com/users/gclitheroe/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-06-09T01:45:03Z","updated_at":"2015-06-09T03:06:21Z","closed_at":"2015-06-09T03:05:36Z","pull_request":{"url":"https://api.github.com/repos/GeoNet/msg/pulls/38","html_url":"https://github.com/GeoNet/msg/pull/38","diff_url":"https://github.com/GeoNet/msg/pull/38.diff","patch_url":"https://github.com/GeoNet/msg/pull/38.patch"},"body":"We save the returned http://t.co/XXXXXX url after we posted each time. And next time we'll measure our message length according to the latest t.co url.\r\n\r\nHope this makes sense.\r\n\r\nThe only chance this will fail is:\r\nWe posted an message with a long location name, plus t.co suddenly hashed a longer url than last time. "},"comment":{"url":"https://api.github.com/repos/GeoNet/msg/issues/comments/110208851","html_url":"https://github.com/GeoNet/msg/pull/38#issuecomment-110208851","issue_url":"https://api.github.com/repos/GeoNet/msg/issues/38","id":110208851,"user":{"login":"gclitheroe","id":1016463,"avatar_url":"https://avatars.githubusercontent.com/u/1016463?v=3","gravatar_id":"","url":"https://api.github.com/users/gclitheroe","html_url":"https://github.com/gclitheroe","followers_url":"https://api.github.com/users/gclitheroe/followers","following_url":"https://api.github.com/users/gclitheroe/following{/other_user}","gists_url":"https://api.github.com/users/gclitheroe/gists{/gist_id}","starred_url":"https://api.github.com/users/gclitheroe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gclitheroe/subscriptions","organizations_url":"https://api.github.com/users/gclitheroe/orgs","repos_url":"https://api.github.com/users/gclitheroe/repos","events_url":"https://api.github.com/users/gclitheroe/events{/privacy}","received_events_url":"https://api.github.com/users/gclitheroe/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T03:06:21Z","updated_at":"2015-06-09T03:06:21Z","body":"And your also linking pkg msg to pkg twitter:\r\n\r\n```\r\nfunc (q *Quake) AlertTwitter(minMagnitude float64, twitter twitter.Twitter) (alert bool, message string) {\r\n```\r\n\r\nWhich I really don't like (circular dependencies)\r\n"}}