The SPA (Shujuqiu Public API) allow you to operate your data through a public API. It is opened for VIP and SVIP users only.
The API is under https://api.shujuqiu.com/spa/v1.
You need an access token to access the API, which can be obtained by the login API.
NPA API has rate limiting in order to improve server performance for all users. We only allow 100/1000 calls per day for VIP/SVIP users respectively. Limits are reset in middle night UTC time.
All API method are POST
. Each API returns a JSON data as response. The JSON is a dictionary with
1.0.
For example:
{
"status": "OK",
"meta": {
"time": "2020-12-24T11:41:34",
"tid": "1608810094_AisU",
"version": "1.0",
"token_limit": 1000,
"token_remaining": 1980,
"last_active": "2020-12-24T11:41:34",
"token_reset": "2020-12-25T00:00:00"
},
"data": {
......
}
}
| API | Note |
|---|---|
| User | |
| login | login to get access token |
| Table & Records | |
| :table_slug/get_records | Get all records of a table |
| :table_slug/get_records/:record_id | Get specific record of a table |
| :table_slug/create_record | Add a new record to the table |
| :table_slug/import_records | Import list of records by CSV file to a table |
| :table_slug/update_record/:record_id | Update specific record of a table |
| :table_slug/destroy_records | Destroy all records of a table |
| :table_slug/destroy_records/:record_id | Destroy specific record of a table |
/spa/v1/login.jsonThis API provides login method for get access token.
We provide CRUD APIs for table records. You need table slug for accessing the API, which can be find in the table detail information page (slug URL, e.g. 1or1).
/spa/v1/:table_slug/get_records.jsonThis API provides all records of a table.
NA
/spa/v1/:table_slug/get_records/:record_id.jsonThis API provides record information specified by record ID
NA
/spa/v1/:table_slug/create_record.jsonThis API add a new record to the table
/spa/v1/:table_slug/import_records.jsonThis API add a list of new records to the table by CSV file
NA
# NOTE: do not use -H 'Content-Type:application/json'
curl -i -H "Accept: application/json" -H 'Authorization: Bearer your_access_token' -X POST -F "file=your_file.csv" "https://api.shujuqiu.com/spa/v1/:table_slug/import_records.json"
/spa/v1/:table_slug/update_record/:record_id.jsonThis API update a specified record
/spa/v1/:table_slug/destroy_records.jsonThis API destroy all records of a table
NA
NA
/spa/v1/:table_slug/destroy_records/:record_id.jsonThis API destroy a record specified by ID
NA
NA