2018-01-13 23:19:51 +01:00
|
|
|
import { get } from '../ajax'
|
|
|
|
|
2018-01-14 05:07:11 +01:00
|
|
|
export function getThisUserAccount(instanceName, accessToken) {
|
2018-01-13 23:19:51 +01:00
|
|
|
let url = `https://${instanceName}/api/v1/accounts/verify_credentials`
|
|
|
|
return get(url, {
|
|
|
|
'Authorization': `Bearer ${accessToken}`
|
|
|
|
})
|
|
|
|
}
|