1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-02-09 16:08:48 +01:00

16 lines
487 B
JavaScript
Raw Normal View History

2018-01-13 14:19:51 -08:00
import { get } from '../ajax'
import { basename } from './utils'
2018-01-13 14:19:51 -08:00
2018-01-21 17:18:56 -08:00
export function getVerifyCredentials(instanceName, accessToken) {
let url = `${basename(instanceName)}/api/v1/accounts/verify_credentials`
2018-01-13 14:19:51 -08:00
return get(url, {
'Authorization': `Bearer ${accessToken}`
})
2018-01-22 21:16:27 -08:00
}
export function getAccount(instanceName, accessToken, accountId) {
let url = `${basename(instanceName)}/api/v1/accounts/${accountId}`
return get(url, {
'Authorization': `Bearer ${accessToken}`
})
2018-01-13 14:19:51 -08:00
}