feat(mailchimp): add mailchimp integration

This commit is contained in:
Rıdvan Akca
2024-01-31 12:32:15 +03:00
committed by Ali BARIN
parent c4cbc024e6
commit cbed79fbf1
12 changed files with 195 additions and 0 deletions

View File

@@ -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;