{"action":"created","issue":{"url":"https://api.github.com/repos/INFURA/infura/issues/45","repository_url":"https://api.github.com/repos/INFURA/infura","labels_url":"https://api.github.com/repos/INFURA/infura/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/INFURA/infura/issues/45/comments","events_url":"https://api.github.com/repos/INFURA/infura/issues/45/events","html_url":"https://github.com/INFURA/infura/issues/45","id":280860517,"number":45,"title":"Connect to Infura IPFS Node ","user":{"login":"hermanjunge","id":729830,"avatar_url":"https://avatars2.githubusercontent.com/u/729830?v=4","gravatar_id":"","url":"https://api.github.com/users/hermanjunge","html_url":"https://github.com/hermanjunge","followers_url":"https://api.github.com/users/hermanjunge/followers","following_url":"https://api.github.com/users/hermanjunge/following{/other_user}","gists_url":"https://api.github.com/users/hermanjunge/gists{/gist_id}","starred_url":"https://api.github.com/users/hermanjunge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hermanjunge/subscriptions","organizations_url":"https://api.github.com/users/hermanjunge/orgs","repos_url":"https://api.github.com/users/hermanjunge/repos","events_url":"https://api.github.com/users/hermanjunge/events{/privacy}","received_events_url":"https://api.github.com/users/hermanjunge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ncocchiaro","id":3538109,"avatar_url":"https://avatars3.githubusercontent.com/u/3538109?v=4","gravatar_id":"","url":"https://api.github.com/users/ncocchiaro","html_url":"https://github.com/ncocchiaro","followers_url":"https://api.github.com/users/ncocchiaro/followers","following_url":"https://api.github.com/users/ncocchiaro/following{/other_user}","gists_url":"https://api.github.com/users/ncocchiaro/gists{/gist_id}","starred_url":"https://api.github.com/users/ncocchiaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncocchiaro/subscriptions","organizations_url":"https://api.github.com/users/ncocchiaro/orgs","repos_url":"https://api.github.com/users/ncocchiaro/repos","events_url":"https://api.github.com/users/ncocchiaro/events{/privacy}","received_events_url":"https://api.github.com/users/ncocchiaro/received_events","type":"User","site_admin":false},"assignees":[{"login":"ncocchiaro","id":3538109,"avatar_url":"https://avatars3.githubusercontent.com/u/3538109?v=4","gravatar_id":"","url":"https://api.github.com/users/ncocchiaro","html_url":"https://github.com/ncocchiaro","followers_url":"https://api.github.com/users/ncocchiaro/followers","following_url":"https://api.github.com/users/ncocchiaro/following{/other_user}","gists_url":"https://api.github.com/users/ncocchiaro/gists{/gist_id}","starred_url":"https://api.github.com/users/ncocchiaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncocchiaro/subscriptions","organizations_url":"https://api.github.com/users/ncocchiaro/orgs","repos_url":"https://api.github.com/users/ncocchiaro/repos","events_url":"https://api.github.com/users/ncocchiaro/events{/privacy}","received_events_url":"https://api.github.com/users/ncocchiaro/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-12-11T00:07:17Z","updated_at":"2018-05-23T13:47:26Z","closed_at":null,"author_association":"NONE","body":"Reissuing this ticket here https://github.com/ipfs/js-ipfs-api/issues/642\r\n\r\ncc @FedericoCapello @diasdavid"},"comment":{"url":"https://api.github.com/repos/INFURA/infura/issues/comments/391352853","html_url":"https://github.com/INFURA/infura/issues/45#issuecomment-391352853","issue_url":"https://api.github.com/repos/INFURA/infura/issues/45","id":391352853,"user":{"login":"jamesmorgan","id":110869,"avatar_url":"https://avatars1.githubusercontent.com/u/110869?v=4","gravatar_id":"","url":"https://api.github.com/users/jamesmorgan","html_url":"https://github.com/jamesmorgan","followers_url":"https://api.github.com/users/jamesmorgan/followers","following_url":"https://api.github.com/users/jamesmorgan/following{/other_user}","gists_url":"https://api.github.com/users/jamesmorgan/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmorgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmorgan/subscriptions","organizations_url":"https://api.github.com/users/jamesmorgan/orgs","repos_url":"https://api.github.com/users/jamesmorgan/repos","events_url":"https://api.github.com/users/jamesmorgan/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmorgan/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T13:47:26Z","updated_at":"2018-05-23T13:47:26Z","author_association":"NONE","body":"@gus-canya sorry for the poor example but we use it like this:\r\n```\r\nconst ipfs = IPFS('ipfs.infura.io', '5001', {protocol: 'https'});\r\n\r\nfunction example(){\r\n  return ipfs.add([\r\n      {\r\n        path: `my_ipfs_hash/image`,\r\n        content: fs.createReadStream(`./config/data/ipfs_data/my_ipfs_hash/low_res.gif`),\r\n      },\r\n      {\r\n        path: `my_ipfs_hash/description`,\r\n        content: fs.createReadStream(`./config/data/ipfs_data/my_ipfs_hash/data`),\r\n      }\r\n    ], {recursive: false}\r\n  )\r\n}\r\n```\r\nWe use node 8+, INFURA and have used IPFS extensively with our erc-721 assets and its working brilliantly "}}
{"actor":{"display_login":"jamesmorgan"}}