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