-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
239 additions
and
34 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ | |
.cache/ | ||
temp_files/ | ||
.vscode/ | ||
test.zip | ||
tests/data/test_download.jpg | ||
.coverage |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.4.0 | ||
2.5.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
""" | ||
This script contains examples of using Filestack Workflows | ||
in Python SDK. Workflows are compatible with uploading using | ||
pathfile (by default with multipart=True) and external URL. | ||
* It is essential to upload either from pathfile or url. | ||
""" | ||
|
||
from filestack import Client | ||
|
||
Filestack_API_Key = '<YOUR_FILESTACK_API_KEY>' | ||
file_path = '<PATH_TO_FILE>' | ||
file_url = '<FILE_URL>' | ||
|
||
client = Client(Filestack_API_Key) | ||
|
||
# You should put your Workflows IDs in the parameters as a list. | ||
store_params = { | ||
'workflows': [ | ||
'<WORKFLOWS_ID_1>', | ||
'<WORKFLOWS_ID_2>', | ||
'<WORKFLOWS_ID_3>', | ||
'<WORKFLOWS_ID_4>', | ||
'<WORKFLOWS_ID_5>' | ||
] | ||
} | ||
|
||
new_filelink = client.upload( | ||
filepath=file_path, | ||
# url=file_url, | ||
params=store_params | ||
) |
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
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
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
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
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