update
swadhinbiswas committed 2 years ago
f130c97
1 parent a5992af
commit f130c97
1 file changed
+73 -1
Showing 1 changed file+73-1
▼README.md
+73-1
| @@ -20,7 +20,7 @@ | ||
20 | 20 | |
21 | 21 | Install With |
22 | 22 | |
23 | -```pyhton3 | |
23 | +```python3 | |
24 | 24 | pip3 install pystreamtape |
25 | 25 | ``` |
26 | 26 | ## Usage |
| @@ -31,4 +31,76 @@ pip3 install pystreamtape | ||
31 | 31 | ```python3 |
32 | 32 | var=Streamtape('api_key','api_secret') |
33 | 33 | |
34 | +``` | |
35 | + | |
36 | +## General response | |
37 | + | |
38 | +<h4>For the general purpose of any response, the ApiResponse class has been created to return a dict with this structure:</h6> | |
39 | + | |
40 | +```json | |
41 | +{ | |
42 | + "status": <status-code>, | |
43 | + "msg": "<informational message. might vary, use the status code in your code!>", | |
44 | + "result": <result of the request. varies depending on the request> | |
45 | +} | |
46 | +``` | |
47 | + | |
48 | +```python3 | |
49 | +from streamtape import Streamtape | |
50 | +var=Streamtape('api_key','api_secret') | |
51 | + | |
52 | +var.account_info() | |
53 | + | |
54 | +var.download_ticket() | |
55 | + | |
56 | +var.download_link() | |
57 | + | |
58 | +var.file_info() | |
59 | + | |
60 | +var.upload_file() | |
61 | + | |
62 | +var.add_remote_upload() | |
63 | + | |
64 | +var.remove_upload_upload() | |
65 | + | |
66 | +var.cheak_upload_status() | |
67 | + | |
68 | +var.list_of_files() | |
69 | + | |
70 | +var.create_folder() | |
71 | + | |
72 | +var.rename_folder() | |
73 | + | |
74 | +var.delete_folder() | |
75 | + | |
76 | +var.move_folder() | |
77 | + | |
78 | +var.delete_file() | |
79 | + | |
80 | +var.list_running_conversions() | |
81 | + | |
82 | +var.list_of_confails() | |
83 | + | |
84 | +var.list_of_finished_conversions() | |
85 | + | |
86 | +var.list_of_conversion_formats() | |
87 | + | |
88 | +var.convert_file() | |
89 | + | |
90 | +var.cancel_conversion() | |
91 | + | |
92 | +var.get_conversion_status() | |
93 | + | |
94 | +var.get_conversion_formats() | |
95 | + | |
96 | +var. get_thumbnail() | |
97 | + | |
98 | +var.get_splash() | |
99 | + | |
100 | + | |
101 | + | |
102 | + | |
103 | + | |
104 | + | |
105 | + | |
34 | 106 | ``` |
35 | 107 | |