Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload photo to IPFS using Pinata's API #1

Open
obo20 opened this issue Sep 7, 2018 · 19 comments
Open

Upload photo to IPFS using Pinata's API #1

obo20 opened this issue Sep 7, 2018 · 19 comments

Comments

@obo20
Copy link
Owner

obo20 commented Sep 7, 2018

Purpose
To test Pinata's ability to host content on IPFS through the API

Estimated time to completion: 15 minutes

Definition of Done
Go to pinata.cloud and sign up to use the API
Read documentation on how to pin content to IPFS with the API
Download and pin the photo below to Pinata with the API

image

Leave a comment review in GitHub with:

The IPFS hash of the image
An explanation on what you liked about the API
An explanation on what you didn't like about the API
A feature you want to see added

Only one upload per worker

@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 0.09 ETH (19.66 USD @ $218.46/ETH) attached to it.

@gitcoinbot
Copy link

gitcoinbot commented Sep 7, 2018

Issue Status: 1. Open 2. Cancelled


Work has been started.

These users each claimed they can complete the work by 6 days, 20 hours from now.
Please review their action plans below:

  1. PumpkingWok has been approved to start work.

    Hi,
    I could start this issue right now.
    Thanks.

Learn more on the Gitcoin Issue Details page.

  1. Ndife has been approved to start work.

    Hello,
    I can get this done right away.
    Thanks.

Learn more on the Gitcoin Issue Details page.

  1. MJ10 has been approved to start work.

    Use the JavaScript example in the documentation to upload the image and get acquainted with the API.

Learn more on the Gitcoin Issue Details page.

  1. Naggertooth has been approved to start work.

    I'm almost done.
    First note is I'd like to see the target of pinata somewhere in docs.

Learn more on the Gitcoin Issue Details page.

@MJ10
Copy link

MJ10 commented Sep 7, 2018

Hi. I had a great time working with the API.
Hash: QmPnzP6jZF8scmaPmPz9zg2HvAXPxkXDdkdDvekbaKRxCB

The API is extremely easy to get started with. I really liked how well the API is designed. I also liked the fact that the documentation featured a tutorial on working with Postman, that was a nice touch.

Although I noticed a bug in the documentation, in the JavaScript example on the documentation for the pinFileToIPFS endpoint, the API URL is incorrectly stated as https://api.pinata.cloud/pinning/pinJSONToIPFS instead of https://api.pinata.cloud/pinning/pinFileToIPFS. @obo20 would you like me to create an issue for that?

@Naggertooth
Copy link

Hi.
"IpfsHash": "QmPnzP6jZF8scmaPmPz9zg2HvAXPxkXDdkdDvekbaKRxCB"

The API is easy to use and seems very friendly.
And it's builded on MVC. Wow!

1: When I signed up firstly I was seeing account details in the popup.
And word "secret" means that probably I won't see this anymore.
2. As I said: When I visit pinata's site I don't get what's exactly pinata for?
3. The docs can be structured as table of contents with scrolling on tap OR it would be good to see table of contents in any tab.
4. I belive that it would be more easy to use if there would be an option to use js with those modules instantly in browser. And link to postman download also would be rly cool.
5. I don't see where am I. I mean that I need to check all tabs at the top to see: where am I and where I need to be to do something. Would be great if they will be highlighted or anywhere would be a breadcrumbs.

I noticed a bug too, when signing up after courple seconds - I see accound data and cool alerts with errors. I guess thats not right:)

@altuntasfatih
Copy link

Hi

{
    IpfsHash: 'QmPnzP6jZF8scmaPmPz9zg2HvAXPxkXDdkdDvekbaKRxCB',
    PinSize: '622027',
    Timestamp: '2018-09-07T17:32:01.381Z' 
}

Code is here https://github.com/altuntasfatih/PinataTest

This api provide very easy way for pinning to file to IPFS .
I have used IPFS before.For pinning a file to ıpfs without this api,you must first upload file then call the pin command with hash of uploaded image.This process will require two step.But you can do this in one step with pinata api

@Ndife
Copy link

Ndife commented Sep 7, 2018

Hello,
Hash: QmPnzP6jZF8scmaPmPz9zg2HvAXPxkXDdkdDvekbaKRxCB.
The API was nice and user-friendly especially the one
with Postman, it's pretty easy and straightforward. I also noticed
something on the website, the pin explorer always pops up an error message
when you click on it.i think you would like to fix that apart from that
I think everything other thing was great

@gitcoinbot
Copy link

Issue Status: 1. Open 2. Cancelled


The funding of 0.09 ETH (19.61 USD @ $217.87/ETH) attached to this issue has been cancelled by the bounty submitter

@EzraWeller
Copy link

Hi

{ 
    IpfsHash: 'QmPnzP6jZF8scmaPmPz9zg2HvAXPxkXDdkdDvekbaKRxCB',
    PinSize: '622027',
    Timestamp: '2018-09-07T18:04:38.896Z' 
}

Total beginner here. I connected with JS/axios. The only problem I had setting up was the comment that MJ10 added about the URL (reading that comment was what tipped me off actually). I am noticing that everyone's hash is the same: I'm guessing that's just IPFS being IPFS (which is awesome), but it does seem like it would make it easy to fake doing this.

@PumpkingWok
Copy link

Hi There,
IPFS Hash: QmPnzP6jZF8scmaPmPz9zg2HvAXPxkXDdkdDvekbaKRxCB

The API is really simple, the UI of pinata.cloud is really enjoyable.
I tested the API using Postman and directly with js code, Postmas is really useful to testing it on the fly.

I have tried both pinFileToIPFS and removePinFromIPFS, simple and useful.
I noticed the same error that catched @MJ10 in doc, while I was trying the API.
I also have noticed that pinataSecretApiKey is pass in clear text via API parameter, maybe it is more secure using something like hash.

Congratulations for the web service, it will promise well.
Thanks in advance.

@gitcoinbot
Copy link

⚡️ A tip worth 0.09000 ETH (19.61 USD @ $217.87/ETH) has been granted to @Ndife for this issue from @kyletut. ⚡️

Nice work @Ndife! To redeem your tip, login to Gitcoin at https://gitcoin.co/explorer and select 'Claim Tip' from dropdown menu in the top right, or check your email for a link to the tip redemption page.

@gitcoinbot
Copy link

⚡️ A tip worth 0.09000 ETH (19.61 USD @ $217.87/ETH) has been granted to @PumpkingWok for this issue from @kyletut. ⚡️

Nice work @PumpkingWok! Your tip has automatically been deposited in the ETH address we have on file.

@obo20
Copy link
Owner Author

obo20 commented Sep 7, 2018

@everyone who tested the API, thanks for your comments! We really appreciate you testing out our API. We'll likely be throwing up some more tasks for people to try in the future.

@Naggertooth @Ndife Thanks for alerting us to some errors. We don't seem to be seeing them in our error logs. Is there any chance you'd be able to check your chrome developer tools and go to the network tab to see the error that was returned from the API? Thanks so much in advance.

@kyletut
Copy link

kyletut commented Sep 7, 2018

@Naggertooth and @MJ10, we are working on your payments and emailed the gitcoin team. The payment ability closed on us and we are trying to reopen it. If nothing else, we will send a tip.

@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 0.09 ETH (19.61 USD @ $217.87/ETH) attached to it.

@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


The funding of 0.09 ETH (19.61 USD @ $217.87/ETH) attached to this issue has been approved & issued.

@Naggertooth
Copy link

@obo20, okay.
My error seems pretty easy.
{error: "Email is already registered to another user"}

@kyletut, thank you, I'm waiting for it.

@gitcoinbot
Copy link

⚡️ A tip worth 0.09000 ETH (19.63 USD @ $218.08/ETH) has been granted to @Naggertooth for this issue from @kyletut. ⚡️

The sender had the following public comments:

Thanks for the help!

Nice work @Naggertooth! To redeem your tip, login to Gitcoin at https://gitcoin.co/explorer and select 'Claim Tip' from dropdown menu in the top right, or check your email for a link to the tip redemption page.

@gitcoinbot
Copy link

⚡️ A tip worth 0.09000 ETH (19.63 USD @ $218.08/ETH) has been granted to @MJ10 for this issue from @kyletut. ⚡️

The sender had the following public comments:

Thanks for the help!

Nice work @MJ10! To redeem your tip, login to Gitcoin at https://gitcoin.co/explorer and select 'Claim Tip' from dropdown menu in the top right, or check your email for a link to the tip redemption page.

@Cygnusfear
Copy link

Cygnusfear commented Sep 8, 2018

Hey there, nice API; nice to be able to upload from a file stream. As a dev I'd probably want to be able to upload from a web-based environment as well (blob or plain data encoded).

https://ipfs.infura.io/ipfs/QmPnzP6jZF8scmaPmPz9zg2HvAXPxkXDdkdDvekbaKRxCB

(tested with a quick node script)

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants