mirror of
https://github.com/sun-guannan/CapCutAPI.git
synced 2025-11-25 19:37:48 +08:00
modify read me
This commit is contained in:
@@ -74,7 +74,7 @@ python capcut_server.py
|
|||||||
```python
|
```python
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
response = requests.post("http://localhost:9000/add_video", json={
|
response = requests.post("http://localhost:9001/add_video", json={
|
||||||
"video_url": "http://example.com/video.mp4",
|
"video_url": "http://example.com/video.mp4",
|
||||||
"start": 0,
|
"start": 0,
|
||||||
"end": 10,
|
"end": 10,
|
||||||
@@ -90,7 +90,7 @@ print(response.json())
|
|||||||
```python
|
```python
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
response = requests.post("http://localhost:9000/add_text", json={
|
response = requests.post("http://localhost:9001/add_text", json={
|
||||||
"text": "你好,世界!",
|
"text": "你好,世界!",
|
||||||
"start": 0,
|
"start": 0,
|
||||||
"end": 3,
|
"end": 3,
|
||||||
@@ -107,7 +107,7 @@ print(response.json())
|
|||||||
```python
|
```python
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
response = requests.post("http://localhost:9000/save_draft", json={
|
response = requests.post("http://localhost:9001/save_draft", json={
|
||||||
"draft_id": "123456",
|
"draft_id": "123456",
|
||||||
"draft_folder":"your capcut draft folder"
|
"draft_folder":"your capcut draft folder"
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ Once the server is started, you can access the related functions through the API
|
|||||||
```python
|
```python
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
response = requests.post("http://localhost:9000/add_video", json={
|
response = requests.post("http://localhost:9001/add_video", json={
|
||||||
"video_url": "http://example.com/video.mp4",
|
"video_url": "http://example.com/video.mp4",
|
||||||
"start": 0,
|
"start": 0,
|
||||||
"end": 10,
|
"end": 10,
|
||||||
@@ -92,7 +92,7 @@ print(response.json())
|
|||||||
```python
|
```python
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
response = requests.post("http://localhost:9000/add_text", json={
|
response = requests.post("http://localhost:9001/add_text", json={
|
||||||
"text": "Hello, World!",
|
"text": "Hello, World!",
|
||||||
"start": 0,
|
"start": 0,
|
||||||
"end": 3,
|
"end": 3,
|
||||||
@@ -109,7 +109,7 @@ print(response.json())
|
|||||||
```python
|
```python
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
response = requests.post("http://localhost:9000/save_draft", json={
|
response = requests.post("http://localhost:9001/save_draft", json={
|
||||||
"draft_id": "123456",
|
"draft_id": "123456",
|
||||||
"draft_folder": "your capcut draft folder"
|
"draft_folder": "your capcut draft folder"
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user