feat(mailchimp): add mailchimp integration
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
const getCurrentUser = async ($) => {
|
||||
const { data: currentUser } = await $.http.get(
|
||||
'https://login.mailchimp.com/oauth2/metadata',
|
||||
{
|
||||
headers: {
|
||||
Authorization: `OAuth ${$.auth.data.accessToken}`,
|
||||
},
|
||||
additionalProperties: {
|
||||
skipAddingAuthHeader: true,
|
||||
skipAddingBaseUrl: true,
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
return currentUser;
|
||||
};
|
||||
|
||||
export default getCurrentUser;
|
Reference in New Issue
Block a user