-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DEV-1983][DEV-1986] Add function to subscribe and unsubscribe contact from active campaign list #1257
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 3d530c3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Jira Pull Request LinkThis Pull Request refers to the following Jira issue DEV-1983 |
// remove .skip to run the test, be aware it does real API calls | ||
describe('manage list subscription', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What skip?
// remove .skip to run the test, be aware it does real API calls | |
describe('manage list subscription', () => { | |
// remove .skip to run the test, be aware it does real API calls | |
describe.skip('manage list subscription', () => { |
const cognitoUserId = '66ae52a0-f051-7080-04a1-465b3a4f44cc'; | ||
const listName = 'test-webinar-1732097286071'; | ||
|
||
it('should subscriber the contact to the list', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it('should subscriber the contact to the list', async () => { | |
it('should subscribe the contact to the list', async () => { |
}; | ||
} | ||
|
||
const listId = await acClient.getListIdByName(listName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if the listId
does not exist?
import { acClient } from '../utils/activeCampaignClient'; | ||
|
||
export async function manageListSubscription( | ||
username: string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the proper name of this attribute cognitoId
, cognitoUserId
or username
?
|
||
// remove .skip to run the test, be aware it does real API calls | ||
describe('manage list subscription', () => { | ||
const cognitoUserId = '66ae52a0-f051-7080-04a1-465b3a4f44cc'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the proper name of this constant cognitoId, cognitoUserId or username?
List of Changes
Add function to subscribe and unsubscribe contact from active campaign list
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: