Run Scripts
The available run-scripts routes for the pre-setup python scripts for the K-Comebacks Database (on Github), Projects Database (on Github) and the likesongsync2.py script.
note
If the requested script is already running, the request will be ignored.
GET /v1/run/kcomebacks
Run the rpopfetch.py Script to update the K-Comebacks Database
Example Response
- 200
- 500
- 503
{
"status": "udating..."
}
Parameter | Type | Description |
---|---|---|
status | String | The status message of the script |
{
"status": 500,
"statusText": "Internal Server Error"
}
Parameter | Type | Description |
---|---|---|
status | Number | The status code of the error |
statusText | String | The status text of the error |
API is down
{
"status": 503,
"statusText": "Service Unavailable"
}
Parameter | Type | Description |
---|---|---|
status | Number | The status code of the error |
statusText | String | The status text of the error |
GET /v1/run/projects
Run the update_projects.py Script to update the Projects Database
Example Response
- 200
- 500
- 503
{
"status": "udating..."
}
Parameter | Type | Description |
---|---|---|
status | String | The status message of the script |
{
"status": 500,
"statusText": "Internal Server Error"
}
Parameter | Type | Description |
---|---|---|
status | Number | The status code of the error |
statusText | String | The status text of the error |
API is down
{
"status": 503,
"statusText": "Service Unavailable"
}
Parameter | Type | Description |
---|---|---|
status | Number | The status code of the error |
statusText | String | The status text of the error |
GET /v1/run/synclikedsongs
Run the likedsongsync2.py Script to sync my liked songs from Spotify with Last.fm
Example Response
- 200
- 500
- 503
{
"status": "udating..."
}
Parameter | Type | Description |
---|---|---|
status | String | The status message of the script |
{
"status": 500,
"statusText": "Internal Server Error"
}
Parameter | Type | Description |
---|---|---|
status | Number | The status code of the error |
statusText | String | The status text of the error |
API is down
{
"status": 503,
"statusText": "Service Unavailable"
}
Parameter | Type | Description |
---|---|---|
status | Number | The status code of the error |
statusText | String | The status text of the error |