pinafore/routes/_utils/mastodon/user.js

9 lines
278 B
JavaScript
Raw Normal View History

2018-01-13 23:19:51 +01:00
import { get } from '../ajax'
import { basename } from './utils'
2018-01-13 23:19:51 +01:00
2018-01-22 02:18:56 +01:00
export function getVerifyCredentials(instanceName, accessToken) {
let url = `${basename(instanceName)}/api/v1/accounts/verify_credentials`
2018-01-13 23:19:51 +01:00
return get(url, {
'Authorization': `Bearer ${accessToken}`
})
}