2018-03-11 01:21:10 +01:00
|
|
|
import { auth, basename } from './utils'
|
2018-06-13 16:38:36 +02:00
|
|
|
import { del, WRITE_TIMEOUT } from '../_utils/ajax'
|
2018-03-11 01:21:10 +01:00
|
|
|
|
|
|
|
export async function deleteStatus (instanceName, accessToken, statusId) {
|
|
|
|
let url = `${basename(instanceName)}/api/v1/statuses/${statusId}`
|
2018-08-30 06:42:57 +02:00
|
|
|
return del(url, auth(accessToken), { timeout: WRITE_TIMEOUT })
|
2018-03-11 01:21:10 +01:00
|
|
|
}
|