8dbc1b0503
* chore(package): update standard to version 12.0.0 * package lock update * fix eslint
9 lines
388 B
JavaScript
9 lines
388 B
JavaScript
import { basename, auth } from './utils'
|
|
import { get, paramsString, DEFAULT_TIMEOUT } from '../_utils/ajax'
|
|
|
|
export async function getRelationship (instanceName, accessToken, accountId) {
|
|
let url = `${basename(instanceName)}/api/v1/accounts/relationships?${paramsString({ id: accountId })}`
|
|
let res = await get(url, auth(accessToken), { timeout: DEFAULT_TIMEOUT })
|
|
return res[0]
|
|
}
|