{"action":"created","comment":{"url":"https://api.github.com/repos/contentful/widget-sdk/pulls/comments/60855293","id":60855293,"diff_hunk":"@@ -0,0 +1,88 @@\n+export default class Wistia {\n+\n+  constructor() {\n+    this.videoBrowserEl = document.querySelector('.videoBrowser');\n+    this.errorEl = document.querySelector('.error');\n+    this.preloaderEl = document.querySelector('.preloader');\n+    this.widgetApi = null;\n+    this.axios = require('axios');\n+  }\n+\n+  getVideos(projectId, url) {\n+    if (!this.widgetApi) {\n+      return;\n+    }\n+    this.axios.get(url, {\n+        params: {\n+          project_id: projectId\n+        }\n+      })\n+      .then(response => {\n+        this.preloaderEl.style.display = 'none';\n+\n+        var ejsTemplate = require('ejs!./../templates/video-browser.ejs');","path":"examples/wistia/src/components/wistia.js","position":23,"original_position":23,"commit_id":"6a38cc19ea391069fabab8364da77a4e1377d842","original_commit_id":"6a38cc19ea391069fabab8364da77a4e1377d842","user":{"login":"zeusdeux","id":635512,"avatar_url":"https://avatars.githubusercontent.com/u/635512?v=3","gravatar_id":"","url":"https://api.github.com/users/zeusdeux","html_url":"https://github.com/zeusdeux","followers_url":"https://api.github.com/users/zeusdeux/followers","following_url":"https://api.github.com/users/zeusdeux/following{/other_user}","gists_url":"https://api.github.com/users/zeusdeux/gists{/gist_id}","starred_url":"https://api.github.com/users/zeusdeux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeusdeux/subscriptions","organizations_url":"https://api.github.com/users/zeusdeux/orgs","repos_url":"https://api.github.com/users/zeusdeux/repos","events_url":"https://api.github.com/users/zeusdeux/events{/privacy}","received_events_url":"https://api.github.com/users/zeusdeux/received_events","type":"User","site_admin":false},"body":"`let` would be better here","created_at":"2016-04-25T00:56:23Z","updated_at":"2016-04-25T00:56:23Z","html_url":"https://github.com/contentful/widget-sdk/pull/88#discussion_r60855293","pull_request_url":"https://api.github.com/repos/contentful/widget-sdk/pulls/88","_links":{"self":{"href":"https://api.github.com/repos/contentful/widget-sdk/pulls/comments/60855293"},"html":{"href":"https://github.com/contentful/widget-sdk/pull/88#discussion_r60855293"},"pull_request":{"href":"https://api.github.com/repos/contentful/widget-sdk/pulls/88"}}},"pull_request":{"url":"https://api.github.com/repos/contentful/widget-sdk/pulls/88","id":65499828,"html_url":"https://github.com/contentful/widget-sdk/pull/88","diff_url":"https://github.com/contentful/widget-sdk/pull/88.diff","patch_url":"https://github.com/contentful/widget-sdk/pull/88.patch","issue_url":"https://api.github.com/repos/contentful/widget-sdk/issues/88","number":88,"state":"open","locked":false,"title":"Wistia widget","user":{"login":"floelhoeffel","id":6864947,"avatar_url":"https://avatars.githubusercontent.com/u/6864947?v=3","gravatar_id":"","url":"https://api.github.com/users/floelhoeffel","html_url":"https://github.com/floelhoeffel","followers_url":"https://api.github.com/users/floelhoeffel/followers","following_url":"https://api.github.com/users/floelhoeffel/following{/other_user}","gists_url":"https://api.github.com/users/floelhoeffel/gists{/gist_id}","starred_url":"https://api.github.com/users/floelhoeffel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floelhoeffel/subscriptions","organizations_url":"https://api.github.com/users/floelhoeffel/orgs","repos_url":"https://api.github.com/users/floelhoeffel/repos","events_url":"https://api.github.com/users/floelhoeffel/events{/privacy}","received_events_url":"https://api.github.com/users/floelhoeffel/received_events","type":"User","site_admin":false},"body":"Initial commit of the wistia example widget.","created_at":"2016-04-06T16:51:59Z","updated_at":"2016-04-25T00:56:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"829cc2a1f4659066e22d42da0b11859cdbf4de13","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/contentful/widget-sdk/pulls/88/commits","review_comments_url":"https://api.github.com/repos/contentful/widget-sdk/pulls/88/comments","review_comment_url":"https://api.github.com/repos/contentful/widget-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/contentful/widget-sdk/issues/88/comments","statuses_url":"https://api.github.com/repos/contentful/widget-sdk/statuses/6a38cc19ea391069fabab8364da77a4e1377d842","head":{"label":"contentful:wistia-widget","ref":"wistia-widget","sha":"6a38cc19ea391069fabab8364da77a4e1377d842","user":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"repo":{"id":45402653,"name":"widget-sdk","full_name":"contentful/widget-sdk","owner":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/contentful/widget-sdk","description":"Library for developers to create custom editing interfaces for app.contentful.com","fork":false,"url":"https://api.github.com/repos/contentful/widget-sdk","forks_url":"https://api.github.com/repos/contentful/widget-sdk/forks","keys_url":"https://api.github.com/repos/contentful/widget-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contentful/widget-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contentful/widget-sdk/teams","hooks_url":"https://api.github.com/repos/contentful/widget-sdk/hooks","issue_events_url":"https://api.github.com/repos/contentful/widget-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/contentful/widget-sdk/events","assignees_url":"https://api.github.com/repos/contentful/widget-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/contentful/widget-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/contentful/widget-sdk/tags","blobs_url":"https://api.github.com/repos/contentful/widget-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contentful/widget-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contentful/widget-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/contentful/widget-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contentful/widget-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/contentful/widget-sdk/languages","stargazers_url":"https://api.github.com/repos/contentful/widget-sdk/stargazers","contributors_url":"https://api.github.com/repos/contentful/widget-sdk/contributors","subscribers_url":"https://api.github.com/repos/contentful/widget-sdk/subscribers","subscription_url":"https://api.github.com/repos/contentful/widget-sdk/subscription","commits_url":"https://api.github.com/repos/contentful/widget-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/contentful/widget-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/contentful/widget-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/contentful/widget-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/contentful/widget-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/contentful/widget-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contentful/widget-sdk/merges","archive_url":"https://api.github.com/repos/contentful/widget-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contentful/widget-sdk/downloads","issues_url":"https://api.github.com/repos/contentful/widget-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/contentful/widget-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/contentful/widget-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/contentful/widget-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contentful/widget-sdk/labels{/name}","releases_url":"https://api.github.com/repos/contentful/widget-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/contentful/widget-sdk/deployments","created_at":"2015-11-02T15:21:05Z","updated_at":"2016-04-19T15:27:26Z","pushed_at":"2016-04-22T07:48:58Z","git_url":"git://github.com/contentful/widget-sdk.git","ssh_url":"git@github.com:contentful/widget-sdk.git","clone_url":"https://github.com/contentful/widget-sdk.git","svn_url":"https://github.com/contentful/widget-sdk","homepage":"","size":1333,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":8,"default_branch":"master"}},"base":{"label":"contentful:master","ref":"master","sha":"4fb661151b859e939a043633d957101b35851f7c","user":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"repo":{"id":45402653,"name":"widget-sdk","full_name":"contentful/widget-sdk","owner":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/contentful/widget-sdk","description":"Library for developers to create custom editing interfaces for app.contentful.com","fork":false,"url":"https://api.github.com/repos/contentful/widget-sdk","forks_url":"https://api.github.com/repos/contentful/widget-sdk/forks","keys_url":"https://api.github.com/repos/contentful/widget-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contentful/widget-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contentful/widget-sdk/teams","hooks_url":"https://api.github.com/repos/contentful/widget-sdk/hooks","issue_events_url":"https://api.github.com/repos/contentful/widget-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/contentful/widget-sdk/events","assignees_url":"https://api.github.com/repos/contentful/widget-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/contentful/widget-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/contentful/widget-sdk/tags","blobs_url":"https://api.github.com/repos/contentful/widget-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contentful/widget-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contentful/widget-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/contentful/widget-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contentful/widget-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/contentful/widget-sdk/languages","stargazers_url":"https://api.github.com/repos/contentful/widget-sdk/stargazers","contributors_url":"https://api.github.com/repos/contentful/widget-sdk/contributors","subscribers_url":"https://api.github.com/repos/contentful/widget-sdk/subscribers","subscription_url":"https://api.github.com/repos/contentful/widget-sdk/subscription","commits_url":"https://api.github.com/repos/contentful/widget-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/contentful/widget-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/contentful/widget-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/contentful/widget-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/contentful/widget-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/contentful/widget-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contentful/widget-sdk/merges","archive_url":"https://api.github.com/repos/contentful/widget-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contentful/widget-sdk/downloads","issues_url":"https://api.github.com/repos/contentful/widget-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/contentful/widget-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/contentful/widget-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/contentful/widget-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contentful/widget-sdk/labels{/name}","releases_url":"https://api.github.com/repos/contentful/widget-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/contentful/widget-sdk/deployments","created_at":"2015-11-02T15:21:05Z","updated_at":"2016-04-19T15:27:26Z","pushed_at":"2016-04-22T07:48:58Z","git_url":"git://github.com/contentful/widget-sdk.git","ssh_url":"git@github.com:contentful/widget-sdk.git","clone_url":"https://github.com/contentful/widget-sdk.git","svn_url":"https://github.com/contentful/widget-sdk","homepage":"","size":1333,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/contentful/widget-sdk/pulls/88"},"html":{"href":"https://github.com/contentful/widget-sdk/pull/88"},"issue":{"href":"https://api.github.com/repos/contentful/widget-sdk/issues/88"},"comments":{"href":"https://api.github.com/repos/contentful/widget-sdk/issues/88/comments"},"review_comments":{"href":"https://api.github.com/repos/contentful/widget-sdk/pulls/88/comments"},"review_comment":{"href":"https://api.github.com/repos/contentful/widget-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/contentful/widget-sdk/pulls/88/commits"},"statuses":{"href":"https://api.github.com/repos/contentful/widget-sdk/statuses/6a38cc19ea391069fabab8364da77a4e1377d842"}}}}