MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / purchaseEmails

Function purchaseEmails

background.js:2066–2078  ·  view source on GitHub ↗
(projectCode, quantity, { emailType, domain } = {})

Source from the content-addressed store, hash-verified

2064 return {
2065 user: {
2066 async purchaseEmails(projectCode, quantity, { emailType, domain } = {}) {
2067 const body = {
2068 project_code: projectCode,
2069 quantity,
2070 email_type: normalizeLuckmailEmailType(emailType),
2071 };
2072 if (domain) {
2073 body.domain = String(domain).trim();
2074 }
2075 return request('POST', '/api/v1/openapi/email/purchase', {
2076 jsonData: body,
2077 });
2078 },
2079 async getPurchases({ page = 1, pageSize = 100, projectId, tagId, keyword, userDisabled } = {}) {
2080 return normalizeLuckmailPurchaseListPage(await request('GET', '/api/v1/openapi/email/purchases', {
2081 params: {

Callers

nothing calls this directly

Calls 2

requestFunction · 0.85

Tested by

no test coverage detected