samila icon indicating copy to clipboard operation
samila copied to clipboard

Support different IPFS gateways

Open sepandhaghighi opened this issue 1 year ago • 0 comments

Description

Support different IPFS gateways

References:

  1. https://ipfs.github.io/public-gateway-checker/
  2. https://natoboram.gitlab.io/public-gateway-cacher/

Steps/Code to Reproduce

>>> from samila import *
>>> g.nft_storage(api_key="YOUR_API_KEY", gateway=IPFSGateway.HARDBIN)
{'status': True, 'message': 'https://hardbin.com/ipfs/bafybeifx7yeb55armcsxwwitkymga5xf53dxiarykms3ygqic223w5sk3m'}
>>> g.nft_storage(api_key="YOUR_API_KEY", gateway=IPFSGateway.CID)
{'status': True, 'message': 'bafybeifx7yeb55armcsxwwitkymga5xf53dxiarykms3ygqic223w5sk3m'}

sepandhaghighi avatar Mar 27 '23 09:03 sepandhaghighi