2018-08-20 00:23:40 +02:00
|
|
|
import { WRITE_TIMEOUT, patch } from '../_utils/ajax'
|
|
|
|
import { auth, basename } from './utils'
|
|
|
|
|
|
|
|
export async function updateCredentials (instanceName, accessToken, accountData) {
|
|
|
|
let url = `${basename(instanceName)}/api/v1/accounts/update_credentials`
|
2018-08-30 06:42:57 +02:00
|
|
|
return patch(url, accountData, auth(accessToken), { timeout: WRITE_TIMEOUT })
|
2018-08-20 00:23:40 +02:00
|
|
|
}
|