Created
January 14, 2022 03:06
-
-
Save anthony-chaudhary/b58cc13903e3dceda2f7ee83f2e253dc to your computer and use it in GitHub Desktop.
diffgram import from SDK
This file contains hidden or 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
from diffgram import Project | |
import time | |
project = Project( | |
host = "https://diffgram.com", # replace with your host for private installs | |
project_string_id = "replace_with_project_string", | |
client_id = "replace_with_client_id", | |
client_secret = "replace_with_client_secret") | |
signed_url_list = ["https://files.readme.io/e3d7e86-small-diffgram_logo_word_only.png" for i in range(100)] | |
for url in signed_url_list: | |
result = project.file.from_url(url) | |
time.sleep(.300) # avoid rate limits | |
print("sent") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment