{"action":"created","comment":{"url":"https://api.github.com/repos/tinderjs/tinderjs/pulls/comments/59138245","id":59138245,"diff_hunk":"@@ -70,6 +73,36 @@ function TinderClient() {\n   };\n \n   /**\n+   * Issues a POST MULTIPART request to the tinder API\n+   * @param {String} path the relative path\n+   * @param {Object} data an object containing extra values\n+   * @param {Function} callback the callback to invoke when the request completes\n+   */\n+  var tinderMultipartPost = function(path, data, callback) {\n+    var opts = getRequestOptions(path, null);\n+    opts['url'] = TINDER_IMAGE_HOST + path,\n+    opts.method = 'POST';\n+    var req = request(opts, callback);\n+    var fm = req.form();\n+\n+    for (var key in data) {\n+      fm.append(key,data[key]);\n+    }\n+  };","path":"tinder.js","position":92,"original_position":92,"commit_id":"f480d35b52a2b53c6994fe4d0ba8b45879e1c55d","original_commit_id":"f480d35b52a2b53c6994fe4d0ba8b45879e1c55d","user":{"login":"run1t","id":6145328,"avatar_url":"https://avatars.githubusercontent.com/u/6145328?v=3","gravatar_id":"","url":"https://api.github.com/users/run1t","html_url":"https://github.com/run1t","followers_url":"https://api.github.com/users/run1t/followers","following_url":"https://api.github.com/users/run1t/following{/other_user}","gists_url":"https://api.github.com/users/run1t/gists{/gist_id}","starred_url":"https://api.github.com/users/run1t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/run1t/subscriptions","organizations_url":"https://api.github.com/users/run1t/orgs","repos_url":"https://api.github.com/users/run1t/repos","events_url":"https://api.github.com/users/run1t/events{/privacy}","received_events_url":"https://api.github.com/users/run1t/received_events","type":"User","site_admin":false},"body":"and it's working ? I tested to isn't not working ...\r\n```\r\n{ request: \r\n   { debugId: 2,\r\n     uri: 'https://imageupload.gotinder.com/image?client_photo_id=ProfilePhoto1460311503529',\r\n     method: 'POST',\r\n     headers: \r\n      { 'User-Agent': 'Tinder Android Version 4.1.4',\r\n        os_version: '21',\r\n        platform: 'android',\r\n        'app-version': '809',\r\n        'Accept-Language': 'en',\r\n        'X-Auth-Token': 'xxxxxxxxxxxxxxxx',\r\n        host: 'imageupload.gotinder.com',\r\n        'content-length': 0 } } }\r\n```","created_at":"2016-04-10T18:06:58Z","updated_at":"2016-04-10T18:06:58Z","html_url":"https://github.com/tinderjs/tinderjs/pull/18#discussion_r59138245","pull_request_url":"https://api.github.com/repos/tinderjs/tinderjs/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/tinderjs/tinderjs/pulls/comments/59138245"},"html":{"href":"https://github.com/tinderjs/tinderjs/pull/18#discussion_r59138245"},"pull_request":{"href":"https://api.github.com/repos/tinderjs/tinderjs/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/tinderjs/tinderjs/pulls/18","id":65892601,"html_url":"https://github.com/tinderjs/tinderjs/pull/18","diff_url":"https://github.com/tinderjs/tinderjs/pull/18.diff","patch_url":"https://github.com/tinderjs/tinderjs/pull/18.patch","issue_url":"https://api.github.com/repos/tinderjs/tinderjs/issues/18","number":18,"state":"open","locked":false,"title":"Add Picture methods","user":{"login":"run1t","id":6145328,"avatar_url":"https://avatars.githubusercontent.com/u/6145328?v=3","gravatar_id":"","url":"https://api.github.com/users/run1t","html_url":"https://github.com/run1t","followers_url":"https://api.github.com/users/run1t/followers","following_url":"https://api.github.com/users/run1t/following{/other_user}","gists_url":"https://api.github.com/users/run1t/gists{/gist_id}","starred_url":"https://api.github.com/users/run1t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/run1t/subscriptions","organizations_url":"https://api.github.com/users/run1t/orgs","repos_url":"https://api.github.com/users/run1t/repos","events_url":"https://api.github.com/users/run1t/events{/privacy}","received_events_url":"https://api.github.com/users/run1t/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-09T21:09:23Z","updated_at":"2016-04-10T18:06:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b7b5cb930233caf118076e51ac6adb7da81ed713","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tinderjs/tinderjs/pulls/18/commits","review_comments_url":"https://api.github.com/repos/tinderjs/tinderjs/pulls/18/comments","review_comment_url":"https://api.github.com/repos/tinderjs/tinderjs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tinderjs/tinderjs/issues/18/comments","statuses_url":"https://api.github.com/repos/tinderjs/tinderjs/statuses/f480d35b52a2b53c6994fe4d0ba8b45879e1c55d","head":{"label":"run1t:master","ref":"master","sha":"f480d35b52a2b53c6994fe4d0ba8b45879e1c55d","user":{"login":"run1t","id":6145328,"avatar_url":"https://avatars.githubusercontent.com/u/6145328?v=3","gravatar_id":"","url":"https://api.github.com/users/run1t","html_url":"https://github.com/run1t","followers_url":"https://api.github.com/users/run1t/followers","following_url":"https://api.github.com/users/run1t/following{/other_user}","gists_url":"https://api.github.com/users/run1t/gists{/gist_id}","starred_url":"https://api.github.com/users/run1t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/run1t/subscriptions","organizations_url":"https://api.github.com/users/run1t/orgs","repos_url":"https://api.github.com/users/run1t/repos","events_url":"https://api.github.com/users/run1t/events{/privacy}","received_events_url":"https://api.github.com/users/run1t/received_events","type":"User","site_admin":false},"repo":{"id":55859103,"name":"tinderjs","full_name":"run1t/tinderjs","owner":{"login":"run1t","id":6145328,"avatar_url":"https://avatars.githubusercontent.com/u/6145328?v=3","gravatar_id":"","url":"https://api.github.com/users/run1t","html_url":"https://github.com/run1t","followers_url":"https://api.github.com/users/run1t/followers","following_url":"https://api.github.com/users/run1t/following{/other_user}","gists_url":"https://api.github.com/users/run1t/gists{/gist_id}","starred_url":"https://api.github.com/users/run1t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/run1t/subscriptions","organizations_url":"https://api.github.com/users/run1t/orgs","repos_url":"https://api.github.com/users/run1t/repos","events_url":"https://api.github.com/users/run1t/events{/privacy}","received_events_url":"https://api.github.com/users/run1t/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/run1t/tinderjs","description":"Node package providing programmatic access to the Tinder API","fork":true,"url":"https://api.github.com/repos/run1t/tinderjs","forks_url":"https://api.github.com/repos/run1t/tinderjs/forks","keys_url":"https://api.github.com/repos/run1t/tinderjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/run1t/tinderjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/run1t/tinderjs/teams","hooks_url":"https://api.github.com/repos/run1t/tinderjs/hooks","issue_events_url":"https://api.github.com/repos/run1t/tinderjs/issues/events{/number}","events_url":"https://api.github.com/repos/run1t/tinderjs/events","assignees_url":"https://api.github.com/repos/run1t/tinderjs/assignees{/user}","branches_url":"https://api.github.com/repos/run1t/tinderjs/branches{/branch}","tags_url":"https://api.github.com/repos/run1t/tinderjs/tags","blobs_url":"https://api.github.com/repos/run1t/tinderjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/run1t/tinderjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/run1t/tinderjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/run1t/tinderjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/run1t/tinderjs/statuses/{sha}","languages_url":"https://api.github.com/repos/run1t/tinderjs/languages","stargazers_url":"https://api.github.com/repos/run1t/tinderjs/stargazers","contributors_url":"https://api.github.com/repos/run1t/tinderjs/contributors","subscribers_url":"https://api.github.com/repos/run1t/tinderjs/subscribers","subscription_url":"https://api.github.com/repos/run1t/tinderjs/subscription","commits_url":"https://api.github.com/repos/run1t/tinderjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/run1t/tinderjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/run1t/tinderjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/run1t/tinderjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/run1t/tinderjs/contents/{+path}","compare_url":"https://api.github.com/repos/run1t/tinderjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/run1t/tinderjs/merges","archive_url":"https://api.github.com/repos/run1t/tinderjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/run1t/tinderjs/downloads","issues_url":"https://api.github.com/repos/run1t/tinderjs/issues{/number}","pulls_url":"https://api.github.com/repos/run1t/tinderjs/pulls{/number}","milestones_url":"https://api.github.com/repos/run1t/tinderjs/milestones{/number}","notifications_url":"https://api.github.com/repos/run1t/tinderjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/run1t/tinderjs/labels{/name}","releases_url":"https://api.github.com/repos/run1t/tinderjs/releases{/id}","deployments_url":"https://api.github.com/repos/run1t/tinderjs/deployments","created_at":"2016-04-09T17:57:02Z","updated_at":"2016-04-09T17:57:03Z","pushed_at":"2016-04-10T17:36:24Z","git_url":"git://github.com/run1t/tinderjs.git","ssh_url":"git@github.com:run1t/tinderjs.git","clone_url":"https://github.com/run1t/tinderjs.git","svn_url":"https://github.com/run1t/tinderjs","homepage":"","size":1048,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"tinderjs:master","ref":"master","sha":"7a75d36080e36c002deb6b11477faf054b85da9c","user":{"login":"tinderjs","id":17691195,"avatar_url":"https://avatars.githubusercontent.com/u/17691195?v=3","gravatar_id":"","url":"https://api.github.com/users/tinderjs","html_url":"https://github.com/tinderjs","followers_url":"https://api.github.com/users/tinderjs/followers","following_url":"https://api.github.com/users/tinderjs/following{/other_user}","gists_url":"https://api.github.com/users/tinderjs/gists{/gist_id}","starred_url":"https://api.github.com/users/tinderjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinderjs/subscriptions","organizations_url":"https://api.github.com/users/tinderjs/orgs","repos_url":"https://api.github.com/users/tinderjs/repos","events_url":"https://api.github.com/users/tinderjs/events{/privacy}","received_events_url":"https://api.github.com/users/tinderjs/received_events","type":"Organization","site_admin":false},"repo":{"id":53466313,"name":"tinderjs","full_name":"tinderjs/tinderjs","owner":{"login":"tinderjs","id":17691195,"avatar_url":"https://avatars.githubusercontent.com/u/17691195?v=3","gravatar_id":"","url":"https://api.github.com/users/tinderjs","html_url":"https://github.com/tinderjs","followers_url":"https://api.github.com/users/tinderjs/followers","following_url":"https://api.github.com/users/tinderjs/following{/other_user}","gists_url":"https://api.github.com/users/tinderjs/gists{/gist_id}","starred_url":"https://api.github.com/users/tinderjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinderjs/subscriptions","organizations_url":"https://api.github.com/users/tinderjs/orgs","repos_url":"https://api.github.com/users/tinderjs/repos","events_url":"https://api.github.com/users/tinderjs/events{/privacy}","received_events_url":"https://api.github.com/users/tinderjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tinderjs/tinderjs","description":"Node package providing programmatic access to the Tinder API","fork":true,"url":"https://api.github.com/repos/tinderjs/tinderjs","forks_url":"https://api.github.com/repos/tinderjs/tinderjs/forks","keys_url":"https://api.github.com/repos/tinderjs/tinderjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tinderjs/tinderjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tinderjs/tinderjs/teams","hooks_url":"https://api.github.com/repos/tinderjs/tinderjs/hooks","issue_events_url":"https://api.github.com/repos/tinderjs/tinderjs/issues/events{/number}","events_url":"https://api.github.com/repos/tinderjs/tinderjs/events","assignees_url":"https://api.github.com/repos/tinderjs/tinderjs/assignees{/user}","branches_url":"https://api.github.com/repos/tinderjs/tinderjs/branches{/branch}","tags_url":"https://api.github.com/repos/tinderjs/tinderjs/tags","blobs_url":"https://api.github.com/repos/tinderjs/tinderjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tinderjs/tinderjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tinderjs/tinderjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/tinderjs/tinderjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tinderjs/tinderjs/statuses/{sha}","languages_url":"https://api.github.com/repos/tinderjs/tinderjs/languages","stargazers_url":"https://api.github.com/repos/tinderjs/tinderjs/stargazers","contributors_url":"https://api.github.com/repos/tinderjs/tinderjs/contributors","subscribers_url":"https://api.github.com/repos/tinderjs/tinderjs/subscribers","subscription_url":"https://api.github.com/repos/tinderjs/tinderjs/subscription","commits_url":"https://api.github.com/repos/tinderjs/tinderjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/tinderjs/tinderjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/tinderjs/tinderjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/tinderjs/tinderjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/tinderjs/tinderjs/contents/{+path}","compare_url":"https://api.github.com/repos/tinderjs/tinderjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tinderjs/tinderjs/merges","archive_url":"https://api.github.com/repos/tinderjs/tinderjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tinderjs/tinderjs/downloads","issues_url":"https://api.github.com/repos/tinderjs/tinderjs/issues{/number}","pulls_url":"https://api.github.com/repos/tinderjs/tinderjs/pulls{/number}","milestones_url":"https://api.github.com/repos/tinderjs/tinderjs/milestones{/number}","notifications_url":"https://api.github.com/repos/tinderjs/tinderjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tinderjs/tinderjs/labels{/name}","releases_url":"https://api.github.com/repos/tinderjs/tinderjs/releases{/id}","deployments_url":"https://api.github.com/repos/tinderjs/tinderjs/deployments","created_at":"2016-03-09T03:49:26Z","updated_at":"2016-04-07T06:12:46Z","pushed_at":"2016-04-10T17:39:34Z","git_url":"git://github.com/tinderjs/tinderjs.git","ssh_url":"git@github.com:tinderjs/tinderjs.git","clone_url":"https://github.com/tinderjs/tinderjs.git","svn_url":"https://github.com/tinderjs/tinderjs","homepage":"","size":1081,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tinderjs/tinderjs/pulls/18"},"html":{"href":"https://github.com/tinderjs/tinderjs/pull/18"},"issue":{"href":"https://api.github.com/repos/tinderjs/tinderjs/issues/18"},"comments":{"href":"https://api.github.com/repos/tinderjs/tinderjs/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/tinderjs/tinderjs/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/tinderjs/tinderjs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tinderjs/tinderjs/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/tinderjs/tinderjs/statuses/f480d35b52a2b53c6994fe4d0ba8b45879e1c55d"}}}}