2018-08-19 23:23:40 +01: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 05:42:57 +01:00
|
|
|
return patch(url, accountData, auth(accessToken), { timeout: WRITE_TIMEOUT })
|
2018-08-19 23:23:40 +01:00
|
|
|
}
|