{"action":"created","comment":{"url":"https://api.github.com/repos/cozy-labs/konnectors/pulls/comments/37105470","id":37105470,"diff_hunk":"@@ -0,0 +1,122 @@\n+cozydb = require 'cozydb'\n+request = require 'request'\n+requestJSON = require 'request-json'\n+moment = require 'moment'\n+\n+fetcher = require '../lib/fetcher'\n+filterExisting = require '../lib/filter_existing'\n+saveDataAndFile = require '../lib/save_data_and_file'\n+linkBankOperation = require '../lib/link_bank_operation'\n+\n+localization = require '../lib/localization_manager'\n+\n+log = require('printit')\n+    prefix: \"Virgin Mobile\"\n+    date: true\n+\n+# Models\n+Bill = require '../models/bill'\n+\n+# Konnector\n+module.exports =\n+\n+    name: \"Virgin Mobile\"\n+    slug: \"virginmobile\"\n+    description: 'konnector description virginmobile'\n+    vendorLink: \"https://www.virginmobile.fr/\"\n+\n+    fields:\n+        login: \"text\"\n+        password: \"password\"\n+        folderPath: \"folder\"\n+    models:\n+        bill: Bill\n+\n+    # Define model requests.\n+    init: (callback) ->\n+        # Nothing to do here.\n+        callback()\n+\n+    fetch: (requiredFields, callback) ->\n+        log.info \"Import started\"\n+\n+        fetcher.new()\n+            .use(logIn)\n+            .use(parsePage)\n+            .use(filterExisting log, Bill)\n+            .use(saveDataAndFile(log, Bill, 'virginmobile', ['bill']))","path":"server/konnectors/virginmobile.coffee","position":47,"original_position":47,"commit_id":"58547510af99407382f642eac7faac796b70c6ee","original_commit_id":"58547510af99407382f642eac7faac796b70c6ee","user":{"login":"frankrousseau","id":1336623,"avatar_url":"https://avatars.githubusercontent.com/u/1336623?v=3","gravatar_id":"","url":"https://api.github.com/users/frankrousseau","html_url":"https://github.com/frankrousseau","followers_url":"https://api.github.com/users/frankrousseau/followers","following_url":"https://api.github.com/users/frankrousseau/following{/other_user}","gists_url":"https://api.github.com/users/frankrousseau/gists{/gist_id}","starred_url":"https://api.github.com/users/frankrousseau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankrousseau/subscriptions","organizations_url":"https://api.github.com/users/frankrousseau/orgs","repos_url":"https://api.github.com/users/frankrousseau/repos","events_url":"https://api.github.com/users/frankrousseau/events{/privacy}","received_events_url":"https://api.github.com/users/frankrousseau/received_events","type":"User","site_admin":false},"body":"Vendor name can be written 'Virgin Mobile'","created_at":"2015-08-14T18:31:40Z","updated_at":"2015-08-14T18:31:40Z","html_url":"https://github.com/cozy-labs/konnectors/pull/135#discussion_r37105470","pull_request_url":"https://api.github.com/repos/cozy-labs/konnectors/pulls/135","_links":{"self":{"href":"https://api.github.com/repos/cozy-labs/konnectors/pulls/comments/37105470"},"html":{"href":"https://github.com/cozy-labs/konnectors/pull/135#discussion_r37105470"},"pull_request":{"href":"https://api.github.com/repos/cozy-labs/konnectors/pulls/135"}}},"pull_request":{"url":"https://api.github.com/repos/cozy-labs/konnectors/pulls/135","id":42449930,"html_url":"https://github.com/cozy-labs/konnectors/pull/135","diff_url":"https://github.com/cozy-labs/konnectors/pull/135.diff","patch_url":"https://github.com/cozy-labs/konnectors/pull/135.patch","issue_url":"https://api.github.com/repos/cozy-labs/konnectors/issues/135","number":135,"state":"open","locked":false,"title":"Virgin Mobile konnector","user":{"login":"nicofrand","id":3419050,"avatar_url":"https://avatars.githubusercontent.com/u/3419050?v=3","gravatar_id":"","url":"https://api.github.com/users/nicofrand","html_url":"https://github.com/nicofrand","followers_url":"https://api.github.com/users/nicofrand/followers","following_url":"https://api.github.com/users/nicofrand/following{/other_user}","gists_url":"https://api.github.com/users/nicofrand/gists{/gist_id}","starred_url":"https://api.github.com/users/nicofrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicofrand/subscriptions","organizations_url":"https://api.github.com/users/nicofrand/orgs","repos_url":"https://api.github.com/users/nicofrand/repos","events_url":"https://api.github.com/users/nicofrand/events{/privacy}","received_events_url":"https://api.github.com/users/nicofrand/received_events","type":"User","site_admin":false},"body":"Fixes https://github.com/cozy-labs/konnectors/issues/129","created_at":"2015-08-14T12:17:19Z","updated_at":"2015-08-14T18:31:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"baf0b9924684dcdbf0614e727e93fc9524713568","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cozy-labs/konnectors/pulls/135/commits","review_comments_url":"https://api.github.com/repos/cozy-labs/konnectors/pulls/135/comments","review_comment_url":"https://api.github.com/repos/cozy-labs/konnectors/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cozy-labs/konnectors/issues/135/comments","statuses_url":"https://api.github.com/repos/cozy-labs/konnectors/statuses/58547510af99407382f642eac7faac796b70c6ee","head":{"label":"nicofrand:virginmobile","ref":"virginmobile","sha":"58547510af99407382f642eac7faac796b70c6ee","user":{"login":"nicofrand","id":3419050,"avatar_url":"https://avatars.githubusercontent.com/u/3419050?v=3","gravatar_id":"","url":"https://api.github.com/users/nicofrand","html_url":"https://github.com/nicofrand","followers_url":"https://api.github.com/users/nicofrand/followers","following_url":"https://api.github.com/users/nicofrand/following{/other_user}","gists_url":"https://api.github.com/users/nicofrand/gists{/gist_id}","starred_url":"https://api.github.com/users/nicofrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicofrand/subscriptions","organizations_url":"https://api.github.com/users/nicofrand/orgs","repos_url":"https://api.github.com/users/nicofrand/repos","events_url":"https://api.github.com/users/nicofrand/events{/privacy}","received_events_url":"https://api.github.com/users/nicofrand/received_events","type":"User","site_admin":false},"repo":{"id":39953675,"name":"konnectors","full_name":"nicofrand/konnectors","owner":{"login":"nicofrand","id":3419050,"avatar_url":"https://avatars.githubusercontent.com/u/3419050?v=3","gravatar_id":"","url":"https://api.github.com/users/nicofrand","html_url":"https://github.com/nicofrand","followers_url":"https://api.github.com/users/nicofrand/followers","following_url":"https://api.github.com/users/nicofrand/following{/other_user}","gists_url":"https://api.github.com/users/nicofrand/gists{/gist_id}","starred_url":"https://api.github.com/users/nicofrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicofrand/subscriptions","organizations_url":"https://api.github.com/users/nicofrand/orgs","repos_url":"https://api.github.com/users/nicofrand/repos","events_url":"https://api.github.com/users/nicofrand/events{/privacy}","received_events_url":"https://api.github.com/users/nicofrand/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nicofrand/konnectors","description":"Import data in your Cozy","fork":true,"url":"https://api.github.com/repos/nicofrand/konnectors","forks_url":"https://api.github.com/repos/nicofrand/konnectors/forks","keys_url":"https://api.github.com/repos/nicofrand/konnectors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicofrand/konnectors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicofrand/konnectors/teams","hooks_url":"https://api.github.com/repos/nicofrand/konnectors/hooks","issue_events_url":"https://api.github.com/repos/nicofrand/konnectors/issues/events{/number}","events_url":"https://api.github.com/repos/nicofrand/konnectors/events","assignees_url":"https://api.github.com/repos/nicofrand/konnectors/assignees{/user}","branches_url":"https://api.github.com/repos/nicofrand/konnectors/branches{/branch}","tags_url":"https://api.github.com/repos/nicofrand/konnectors/tags","blobs_url":"https://api.github.com/repos/nicofrand/konnectors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicofrand/konnectors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicofrand/konnectors/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicofrand/konnectors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicofrand/konnectors/statuses/{sha}","languages_url":"https://api.github.com/repos/nicofrand/konnectors/languages","stargazers_url":"https://api.github.com/repos/nicofrand/konnectors/stargazers","contributors_url":"https://api.github.com/repos/nicofrand/konnectors/contributors","subscribers_url":"https://api.github.com/repos/nicofrand/konnectors/subscribers","subscription_url":"https://api.github.com/repos/nicofrand/konnectors/subscription","commits_url":"https://api.github.com/repos/nicofrand/konnectors/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicofrand/konnectors/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicofrand/konnectors/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicofrand/konnectors/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicofrand/konnectors/contents/{+path}","compare_url":"https://api.github.com/repos/nicofrand/konnectors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicofrand/konnectors/merges","archive_url":"https://api.github.com/repos/nicofrand/konnectors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicofrand/konnectors/downloads","issues_url":"https://api.github.com/repos/nicofrand/konnectors/issues{/number}","pulls_url":"https://api.github.com/repos/nicofrand/konnectors/pulls{/number}","milestones_url":"https://api.github.com/repos/nicofrand/konnectors/milestones{/number}","notifications_url":"https://api.github.com/repos/nicofrand/konnectors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicofrand/konnectors/labels{/name}","releases_url":"https://api.github.com/repos/nicofrand/konnectors/releases{/id}","created_at":"2015-07-30T14:04:55Z","updated_at":"2015-07-30T14:04:55Z","pushed_at":"2015-08-14T12:15:34Z","git_url":"git://github.com/nicofrand/konnectors.git","ssh_url":"git@github.com:nicofrand/konnectors.git","clone_url":"https://github.com/nicofrand/konnectors.git","svn_url":"https://github.com/nicofrand/konnectors","homepage":null,"size":3669,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cozy-labs:master","ref":"master","sha":"1f21cc80321d3ba548d1ecbf0ef8f786efcba26c","user":{"login":"cozy-labs","id":8415593,"avatar_url":"https://avatars.githubusercontent.com/u/8415593?v=3","gravatar_id":"","url":"https://api.github.com/users/cozy-labs","html_url":"https://github.com/cozy-labs","followers_url":"https://api.github.com/users/cozy-labs/followers","following_url":"https://api.github.com/users/cozy-labs/following{/other_user}","gists_url":"https://api.github.com/users/cozy-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy-labs/subscriptions","organizations_url":"https://api.github.com/users/cozy-labs/orgs","repos_url":"https://api.github.com/users/cozy-labs/repos","events_url":"https://api.github.com/users/cozy-labs/events{/privacy}","received_events_url":"https://api.github.com/users/cozy-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":15378288,"name":"konnectors","full_name":"cozy-labs/konnectors","owner":{"login":"cozy-labs","id":8415593,"avatar_url":"https://avatars.githubusercontent.com/u/8415593?v=3","gravatar_id":"","url":"https://api.github.com/users/cozy-labs","html_url":"https://github.com/cozy-labs","followers_url":"https://api.github.com/users/cozy-labs/followers","following_url":"https://api.github.com/users/cozy-labs/following{/other_user}","gists_url":"https://api.github.com/users/cozy-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy-labs/subscriptions","organizations_url":"https://api.github.com/users/cozy-labs/orgs","repos_url":"https://api.github.com/users/cozy-labs/repos","events_url":"https://api.github.com/users/cozy-labs/events{/privacy}","received_events_url":"https://api.github.com/users/cozy-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cozy-labs/konnectors","description":"Import data in your Cozy","fork":false,"url":"https://api.github.com/repos/cozy-labs/konnectors","forks_url":"https://api.github.com/repos/cozy-labs/konnectors/forks","keys_url":"https://api.github.com/repos/cozy-labs/konnectors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cozy-labs/konnectors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cozy-labs/konnectors/teams","hooks_url":"https://api.github.com/repos/cozy-labs/konnectors/hooks","issue_events_url":"https://api.github.com/repos/cozy-labs/konnectors/issues/events{/number}","events_url":"https://api.github.com/repos/cozy-labs/konnectors/events","assignees_url":"https://api.github.com/repos/cozy-labs/konnectors/assignees{/user}","branches_url":"https://api.github.com/repos/cozy-labs/konnectors/branches{/branch}","tags_url":"https://api.github.com/repos/cozy-labs/konnectors/tags","blobs_url":"https://api.github.com/repos/cozy-labs/konnectors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cozy-labs/konnectors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cozy-labs/konnectors/git/refs{/sha}","trees_url":"https://api.github.com/repos/cozy-labs/konnectors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cozy-labs/konnectors/statuses/{sha}","languages_url":"https://api.github.com/repos/cozy-labs/konnectors/languages","stargazers_url":"https://api.github.com/repos/cozy-labs/konnectors/stargazers","contributors_url":"https://api.github.com/repos/cozy-labs/konnectors/contributors","subscribers_url":"https://api.github.com/repos/cozy-labs/konnectors/subscribers","subscription_url":"https://api.github.com/repos/cozy-labs/konnectors/subscription","commits_url":"https://api.github.com/repos/cozy-labs/konnectors/commits{/sha}","git_commits_url":"https://api.github.com/repos/cozy-labs/konnectors/git/commits{/sha}","comments_url":"https://api.github.com/repos/cozy-labs/konnectors/comments{/number}","issue_comment_url":"https://api.github.com/repos/cozy-labs/konnectors/issues/comments{/number}","contents_url":"https://api.github.com/repos/cozy-labs/konnectors/contents/{+path}","compare_url":"https://api.github.com/repos/cozy-labs/konnectors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cozy-labs/konnectors/merges","archive_url":"https://api.github.com/repos/cozy-labs/konnectors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cozy-labs/konnectors/downloads","issues_url":"https://api.github.com/repos/cozy-labs/konnectors/issues{/number}","pulls_url":"https://api.github.com/repos/cozy-labs/konnectors/pulls{/number}","milestones_url":"https://api.github.com/repos/cozy-labs/konnectors/milestones{/number}","notifications_url":"https://api.github.com/repos/cozy-labs/konnectors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cozy-labs/konnectors/labels{/name}","releases_url":"https://api.github.com/repos/cozy-labs/konnectors/releases{/id}","created_at":"2013-12-22T16:24:12Z","updated_at":"2015-06-30T18:22:29Z","pushed_at":"2015-08-14T12:17:19Z","git_url":"git://github.com/cozy-labs/konnectors.git","ssh_url":"git@github.com:cozy-labs/konnectors.git","clone_url":"https://github.com/cozy-labs/konnectors.git","svn_url":"https://github.com/cozy-labs/konnectors","homepage":null,"size":4991,"stargazers_count":6,"watchers_count":6,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":46,"forks":20,"open_issues":46,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cozy-labs/konnectors/pulls/135"},"html":{"href":"https://github.com/cozy-labs/konnectors/pull/135"},"issue":{"href":"https://api.github.com/repos/cozy-labs/konnectors/issues/135"},"comments":{"href":"https://api.github.com/repos/cozy-labs/konnectors/issues/135/comments"},"review_comments":{"href":"https://api.github.com/repos/cozy-labs/konnectors/pulls/135/comments"},"review_comment":{"href":"https://api.github.com/repos/cozy-labs/konnectors/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cozy-labs/konnectors/pulls/135/commits"},"statuses":{"href":"https://api.github.com/repos/cozy-labs/konnectors/statuses/58547510af99407382f642eac7faac796b70c6ee"}}}}