Skip to content

Instantly share code, notes, and snippets.

@vershimajr
Created August 31, 2019 04:06
Show Gist options
  • Save vershimajr/8e59d4244e38e290185a060e729f49b2 to your computer and use it in GitHub Desktop.
Save vershimajr/8e59d4244e38e290185a060e729f49b2 to your computer and use it in GitHub Desktop.
Pin Hash on Temporal
import requests
pin_hash_url = 'https://api.temporal.cloud/v2/ipfs/public/pin/'+'IPFS_HASH'
headers = {'Cache-Control':'no-cache', 'Authorization': 'Bearer '+'AUTH_TOKEN_STRING'}
data = {'hold_time':'HOLD_TIME_INT'}
r = requests.post(pin_hash_url,headers=headers,data=data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment