Skip to content

Instantly share code, notes, and snippets.

@vershimajr
Created August 31, 2019 04:09
Show Gist options
  • Save vershimajr/c3b5e64c0596b0bdb377e5b65cb667d8 to your computer and use it in GitHub Desktop.
Save vershimajr/c3b5e64c0596b0bdb377e5b65cb667d8 to your computer and use it in GitHub Desktop.
Extend Pin of Hash
import requests
pin_hash_url = 'https://api.temporal.cloud/v2/ipfs/public/pin/'+'IPFS_HASH'+'/extend'
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