from filestack import Client, Security # policy expires on 5/6/2099 policy = {'call': ['read', 'remove', 'store'], 'expiry': 4081759876} security = Security(policy, '<YOUR_APP_SECRET>') client = Client('<YOUR_API_KEY>', security=security) transform = client.transform_external( 'https://images.unsplash.com/photo-1446776877081-d282a0f896e2?dpr=1&auto=format&fit=crop&w=1500&h=998&q=80&cs=tinysrgb&crop=&bg=' ) transform.blackwhite(threshold=50).flip() print(transform.signed_url())
from filestack import Client client = Client('<YOUR_API_KEY>') transform = client.transform_external('https://upload.wikimedia.org/wikipedia/commons/3/32/House_sparrow04.jpg') transform.resize(width=500, height=500).enhance() print(transform.url) print(transform.download('bird.jpg'))
from filestack import Client client = Client('<YOUR_API_KEY') transform = client.transform_external('<EXTERNAL_URL>') # make zip of an external url and store it to Filestack new_filelink = transform.zip(store=True) print(new_filelink.url)