Skip to content

Instantly share code, notes, and snippets.

@anthony-chaudhary
Created January 14, 2022 03:06
Show Gist options
  • Save anthony-chaudhary/b58cc13903e3dceda2f7ee83f2e253dc to your computer and use it in GitHub Desktop.
Save anthony-chaudhary/b58cc13903e3dceda2f7ee83f2e253dc to your computer and use it in GitHub Desktop.
diffgram import from SDK
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