pinafore/routes/_utils/mastodon/user.js

8 lines
239 B
JavaScript
Raw Normal View History

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