pinafore/routes/_utils/mastodon/user.js
2018-01-18 21:52:58 -08:00

9 lines
276 B
JavaScript

import { get } from '../ajax'
import { basename } from './utils'
export function getThisUserAccount(instanceName, accessToken) {
let url = `${basename(instanceName)}/api/v1/accounts/verify_credentials`
return get(url, {
'Authorization': `Bearer ${accessToken}`
})
}