Created
August 31, 2019 04:09
-
-
Save vershimajr/c3b5e64c0596b0bdb377e5b65cb667d8 to your computer and use it in GitHub Desktop.
Extend Pin of Hash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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